diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | circle.yml | 73 |
2 files changed, 74 insertions, 1 deletions
@@ -1,7 +1,7 @@ | |||
1 | Docker-Ansible base images | 1 | Docker-Ansible base images |
2 | =================== | 2 | =================== |
3 | 3 | ||
4 | [![Build Status](https://travis-ci.org/William-Yeh/docker-ansible.svg?branch=master)](https://travis-ci.org/William-Yeh/docker-ansible) | 4 | [![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) |
5 | 5 | ||
6 | 6 | ||
7 | ## Summary | 7 | ## Summary |
diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..6779d9d --- /dev/null +++ b/circle.yml | |||
@@ -0,0 +1,73 @@ | |||
1 | machine: | ||
2 | services: | ||
3 | - docker | ||
4 | |||
5 | dependencies: | ||
6 | override: | ||
7 | - docker info | ||
8 | - docker version | ||
9 | |||
10 | - cp test/Dockerfile-ubuntu14.04 Dockerfile | ||
11 | - docker build -t ansible_trusty . | ||
12 | |||
13 | - cp test/Dockerfile-ubuntu12.04 Dockerfile | ||
14 | - docker build -t ansible_precise . | ||
15 | |||
16 | - cp test/Dockerfile-debian8 Dockerfile | ||
17 | - docker build -t ansible_jessie . | ||
18 | |||
19 | - cp test/Dockerfile-debian7 Dockerfile | ||
20 | - docker build -t ansible_wheezy . | ||
21 | |||
22 | - cp test/Dockerfile-centos7 Dockerfile | ||
23 | - docker build -t ansible_centos7 . | ||
24 | |||
25 | - cp test/Dockerfile-centos6 Dockerfile | ||
26 | - docker build -t ansible_centos6 . | ||
27 | |||
28 | - cp test/Dockerfile-ubuntu14.04-onbuild Dockerfile | ||
29 | - docker build -t ansible_trusty_onbuild . | ||
30 | |||
31 | - cp test/Dockerfile-ubuntu12.04-onbuild Dockerfile | ||
32 | - docker build -t ansible_precise_onbuild . | ||
33 | |||
34 | - cp test/Dockerfile-debian8-onbuild Dockerfile | ||
35 | - docker build -t ansible_jessie_onbuild . | ||
36 | |||
37 | - cp test/Dockerfile-debian7-onbuild Dockerfile | ||
38 | - docker build -t ansible_wheezy_onbuild . | ||
39 | |||
40 | - cp test/Dockerfile-centos7-onbuild Dockerfile | ||
41 | - docker build -t ansible_centos7_onbuild . | ||
42 | |||
43 | - cp test/Dockerfile-centos6-onbuild Dockerfile | ||
44 | - docker build -t ansible_centos6_onbuild . | ||
45 | |||
46 | test: | ||
47 | override: | ||
48 | - docker run -i ansible_trusty > result-ubuntu14.04 | ||
49 | - docker run -i ansible_precise > result-ubuntu12.04 | ||
50 | - docker run -i ansible_jessie > result-debian8 | ||
51 | - docker run -i ansible_wheezy > result-debian7 | ||
52 | - docker run -i ansible_centos7 > result-centos7 | ||
53 | - docker run -i ansible_centos6 > result-centos6 | ||
54 | - docker run -i ansible_trusty_onbuild > result-ubuntu14.04-onbuild | ||
55 | - docker run -i ansible_precise_onbuild > result-ubuntu12.04-onbuild | ||
56 | - docker run -i ansible_jessie_onbuild > result-debian8-onbuild | ||
57 | - docker run -i ansible_wheezy_onbuild > result-debian7-onbuild | ||
58 | - docker run -i ansible_centos7_onbuild > result-centos7-onbuild | ||
59 | - docker run -i ansible_centos6_onbuild > result-centos6-onbuild | ||
60 | |||
61 | - echo "==> Validating the test results..." | ||
62 | - sh -c "[ -s result-ubuntu14.04 ]" | ||
63 | - sh -c "[ -s result-ubuntu12.04 ]" | ||
64 | - sh -c "[ -s result-debian8 ]" | ||
65 | - sh -c "[ -s result-debian7 ]" | ||
66 | - sh -c "[ -s result-centos7 ]" | ||
67 | - sh -c "[ -s result-centos6 ]" | ||
68 | - sh -c "[ -s result-ubuntu14.04-onbuild ]" | ||
69 | - sh -c "[ -s result-ubuntu12.04-onbuild ]" | ||
70 | - sh -c "[ -s result-debian8-onbuild ]" | ||
71 | - sh -c "[ -s result-debian7-onbuild ]" | ||
72 | - sh -c "[ -s result-centos7-onbuild ]" | ||
73 | - sh -c "[ -s result-centos6-onbuild ]" | ||