]> git.immae.eu Git - github/fretlink/docker-ansible.git/commitdiff
Add: CircleCI
authorWilliam Yeh <william.pjyeh@gmail.com>
Tue, 2 Jun 2015 07:15:33 +0000 (15:15 +0800)
committerWilliam Yeh <william.pjyeh@gmail.com>
Tue, 2 Jun 2015 07:15:33 +0000 (15:15 +0800)
README.md
circle.yml [new file with mode: 0644]

index a9761eb83f6eb4a2dc0559f6b1a79d0153ebf50d..b41d1d2ffe30354ff66c7a4db727e6b1c5ef6976 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
 Docker-Ansible base images
 ===================
 
-[![Build Status](https://travis-ci.org/William-Yeh/docker-ansible.svg?branch=master)](https://travis-ci.org/William-Yeh/docker-ansible)
+[![Circle CI](https://circleci.com/gh/William-Yeh/docker-ansible.svg?style=shield)](https://circleci.com/gh/William-Yeh/docker-ansible) [![Build Status](https://travis-ci.org/William-Yeh/docker-ansible.svg?branch=master)](https://travis-ci.org/William-Yeh/docker-ansible)
 
 
 ## Summary
diff --git a/circle.yml b/circle.yml
new file mode 100644 (file)
index 0000000..6779d9d
--- /dev/null
@@ -0,0 +1,73 @@
+machine:
+  services:
+    - docker
+
+dependencies:
+  override:
+    - docker info
+    - docker version
+
+    - cp test/Dockerfile-ubuntu14.04 Dockerfile
+    - docker build  -t ansible_trusty   .
+
+    - cp test/Dockerfile-ubuntu12.04 Dockerfile
+    - docker build  -t ansible_precise  .
+
+    - cp test/Dockerfile-debian8 Dockerfile
+    - docker build  -t ansible_jessie   .
+
+    - cp test/Dockerfile-debian7 Dockerfile
+    - docker build  -t ansible_wheezy   .
+
+    - cp test/Dockerfile-centos7 Dockerfile
+    - docker build  -t ansible_centos7  .
+
+    - cp test/Dockerfile-centos6 Dockerfile
+    - docker build  -t ansible_centos6  .
+
+    - cp test/Dockerfile-ubuntu14.04-onbuild Dockerfile
+    - docker build  -t ansible_trusty_onbuild   .
+
+    - cp test/Dockerfile-ubuntu12.04-onbuild Dockerfile
+    - docker build  -t ansible_precise_onbuild  .
+
+    - cp test/Dockerfile-debian8-onbuild Dockerfile
+    - docker build  -t ansible_jessie_onbuild   .
+
+    - cp test/Dockerfile-debian7-onbuild Dockerfile
+    - docker build  -t ansible_wheezy_onbuild   .
+
+    - cp test/Dockerfile-centos7-onbuild Dockerfile
+    - docker build  -t ansible_centos7_onbuild  .
+
+    - cp test/Dockerfile-centos6-onbuild Dockerfile
+    - docker build  -t ansible_centos6_onbuild  .
+
+test:
+  override:
+    - docker run -i ansible_trusty   > result-ubuntu14.04
+    - docker run -i ansible_precise  > result-ubuntu12.04
+    - docker run -i ansible_jessie   > result-debian8
+    - docker run -i ansible_wheezy   > result-debian7
+    - docker run -i ansible_centos7  > result-centos7
+    - docker run -i ansible_centos6  > result-centos6
+    - docker run -i ansible_trusty_onbuild   > result-ubuntu14.04-onbuild
+    - docker run -i ansible_precise_onbuild  > result-ubuntu12.04-onbuild
+    - docker run -i ansible_jessie_onbuild   > result-debian8-onbuild
+    - docker run -i ansible_wheezy_onbuild   > result-debian7-onbuild
+    - docker run -i ansible_centos7_onbuild  > result-centos7-onbuild
+    - docker run -i ansible_centos6_onbuild  > result-centos6-onbuild
+
+    - echo "==> Validating the test results..."
+    - sh -c "[ -s result-ubuntu14.04 ]"
+    - sh -c "[ -s result-ubuntu12.04 ]"
+    - sh -c "[ -s result-debian8     ]"
+    - sh -c "[ -s result-debian7     ]"
+    - sh -c "[ -s result-centos7     ]"
+    - sh -c "[ -s result-centos6     ]"
+    - sh -c "[ -s result-ubuntu14.04-onbuild ]"
+    - sh -c "[ -s result-ubuntu12.04-onbuild ]"
+    - sh -c "[ -s result-debian8-onbuild     ]"
+    - sh -c "[ -s result-debian7-onbuild     ]"
+    - sh -c "[ -s result-centos7-onbuild     ]"
+    - sh -c "[ -s result-centos6-onbuild     ]"