]>
Commit | Line | Data |
---|---|---|
1 | machine: | |
2 | services: | |
3 | - docker | |
4 | ||
5 | dependencies: | |
6 | override: | |
7 | - docker info | |
8 | - docker version | |
9 | ||
10 | - docker build -t ansible_xenial ubuntu16.04 | |
11 | - docker build -t ansible_trusty ubuntu14.04 | |
12 | - docker build -t ansible_stretch debian9 | |
13 | - docker build -t ansible_jessie debian8 | |
14 | - docker build -t ansible_centos7 centos7 | |
15 | - docker build -t ansible_alpine3 alpine3 | |
16 | ||
17 | - docker build -t ansible_xenial_onbuild ubuntu16.04-onbuild | |
18 | - docker build -t ansible_trusty_onbuild ubuntu14.04-onbuild | |
19 | - docker build -t ansible_stretch_onbuild debian9-onbuild | |
20 | - docker build -t ansible_jessie_onbuild debian8-onbuild | |
21 | - docker build -t ansible_centos7_onbuild centos7-onbuild | |
22 | - docker build -t ansible_alpine3_onbuild alpine3-onbuild | |
23 | ||
24 | ||
25 | - docker build -t ansible_1.9_trusty 1.9-ubuntu14.04 | |
26 | - docker build -t ansible_1.9_jessie 1.9-debian8 | |
27 | - docker build -t ansible_1.9_alpine3 1.9-alpine3 | |
28 | ||
29 | - docker build -t ansible_1.9_trusty_onbuild 1.9-ubuntu14.04-onbuild | |
30 | - docker build -t ansible_1.9_jessie_onbuild 1.9-debian8-onbuild | |
31 | - docker build -t ansible_1.9_alpine3_onbuild 1.9-alpine3-onbuild | |
32 | ||
33 | ||
34 | - docker build -t ansible_master_xenial master-ubuntu16.04 | |
35 | - docker build -t ansible_master_trusty master-ubuntu14.04 | |
36 | - docker build -t ansible_master_stretch master-debian9 | |
37 | - docker build -t ansible_master_jessie master-debian8 | |
38 | - docker build -t ansible_master_centos7 master-centos7 | |
39 | ||
40 | - docker build -t ansible_master_xenial_onbuild master-ubuntu16.04-onbuild | |
41 | - docker build -t ansible_master_trusty_onbuild master-ubuntu14.04-onbuild | |
42 | - docker build -t ansible_master_stretch_onbuild master-debian9-onbuild | |
43 | - docker build -t ansible_master_jessie_onbuild master-debian8-onbuild | |
44 | - docker build -t ansible_master_centos7_onbuild master-centos7-onbuild | |
45 | ||
46 | ||
47 | - docker build -t ansible_mini_alpine3 mini-alpine3 | |
48 | - docker build -t ansible_mini_debian9 mini-debian9 | |
49 | - docker build -t ansible_mini_debian8 mini-debian8 | |
50 | - docker build -t nginx_alpine3 -f mini-test/Dockerfile.alpine3 mini-test | |
51 | - docker build -t nginx_debian9 -f mini-test/Dockerfile.debian9 mini-test | |
52 | - docker build -t nginx_debian8 -f mini-test/Dockerfile.debian8 mini-test | |
53 | ||
54 | ||
55 | test: | |
56 | override: | |
57 | - docker run -i ansible_xenial > result-ubuntu16.04 | |
58 | - docker run -i ansible_trusty > result-ubuntu14.04 | |
59 | - docker run -i ansible_stretch > result-debian9 | |
60 | - docker run -i ansible_jessie > result-debian8 | |
61 | - docker run -i ansible_centos7 > result-centos7 | |
62 | - docker run -i ansible_alpine3 > result-alpine3 | |
63 | - docker run -i ansible_xenial_onbuild > result-ubuntu16.04-onbuild | |
64 | - docker run -i ansible_trusty_onbuild > result-ubuntu14.04-onbuild | |
65 | - docker run -i ansible_stretch_onbuild > result-debian9-onbuild | |
66 | - docker run -i ansible_jessie_onbuild > result-debian8-onbuild | |
67 | - docker run -i ansible_centos7_onbuild > result-centos7-onbuild | |
68 | - docker run -i ansible_alpine3_onbuild > result-alpine3-onbuild | |
69 | ||
70 | ||
71 | - docker run -i ansible_1.9_trusty > result-1.9-ubuntu14.04 | |
72 | - docker run -i ansible_1.9_jessie > result-1.9-debian8 | |
73 | - docker run -i ansible_1.9_alpine3 > result-1.9-alpine3 | |
74 | - docker run -i ansible_1.9_trusty_onbuild > result-1.9-ubuntu14.04-onbuild | |
75 | - docker run -i ansible_1.9_jessie_onbuild > result-1.9-debian8-onbuild | |
76 | - docker run -i ansible_1.9_alpine3_onbuild > result-1.9-alpine3-onbuild | |
77 | ||
78 | ||
79 | - docker run -i ansible_master_xenial > result-master-ubuntu16.04 | |
80 | - docker run -i ansible_master_trusty > result-master-ubuntu14.04 | |
81 | - docker run -i ansible_master_stretch > result-master-debian9 | |
82 | - docker run -i ansible_master_jessie > result-master-debian8 | |
83 | - docker run -i ansible_master_centos7 > result-master-centos7 | |
84 | - docker run -i ansible_master_xenial_onbuild > result-master-ubuntu16.04-onbuild | |
85 | - docker run -i ansible_master_trusty_onbuild > result-master-ubuntu14.04-onbuild | |
86 | - docker run -i ansible_master_stretch_onbuild > result-master-debian9-onbuild | |
87 | - docker run -i ansible_master_jessie_onbuild > result-master-debian8-onbuild | |
88 | - docker run -i ansible_master_centos7_onbuild > result-master-centos7-onbuild | |
89 | ||
90 | ||
91 | - docker run -i nginx_alpine3 2> result-nginx-alpine3 | |
92 | - docker run -i nginx_debian9 2> result-nginx-debian9 | |
93 | - docker run -i nginx_debian8 2> result-nginx-debian8 | |
94 | ||
95 | ||
96 | - echo "==> Validating the test results..." | |
97 | - sh -c "[ -s result-ubuntu16.04 ]" | |
98 | - sh -c "[ -s result-ubuntu14.04 ]" | |
99 | - sh -c "[ -s result-debian9 ]" | |
100 | - sh -c "[ -s result-debian8 ]" | |
101 | - sh -c "[ -s result-centos7 ]" | |
102 | - sh -c "[ -s result-alpine3 ]" | |
103 | - sh -c "[ -s result-ubuntu16.04-onbuild ]" | |
104 | - sh -c "[ -s result-ubuntu14.04-onbuild ]" | |
105 | - sh -c "[ -s result-debian9-onbuild ]" | |
106 | - sh -c "[ -s result-debian8-onbuild ]" | |
107 | - sh -c "[ -s result-centos7-onbuild ]" | |
108 | - sh -c "[ -s result-alpine3-onbuild ]" | |
109 | ||
110 | - sh -c "[ -s result-1.9-ubuntu14.04 ]" | |
111 | - sh -c "[ -s result-1.9-debian8 ]" | |
112 | - sh -c "[ -s result-1.9-alpine3 ]" | |
113 | - sh -c "[ -s result-1.9-ubuntu14.04-onbuild ]" | |
114 | - sh -c "[ -s result-1.9-debian8-onbuild ]" | |
115 | - sh -c "[ -s result-1.9-alpine3-onbuild ]" | |
116 | ||
117 | - sh -c "[ -s result-master-ubuntu16.04 ]" | |
118 | - sh -c "[ -s result-master-ubuntu14.04 ]" | |
119 | - sh -c "[ -s result-master-debian9 ]" | |
120 | - sh -c "[ -s result-master-debian8 ]" | |
121 | - sh -c "[ -s result-master-centos7 ]" | |
122 | - sh -c "[ -s result-master-ubuntu16.04-onbuild ]" | |
123 | - sh -c "[ -s result-master-ubuntu14.04-onbuild ]" | |
124 | - sh -c "[ -s result-master-debian9-onbuild ]" | |
125 | - sh -c "[ -s result-master-debian8-onbuild ]" | |
126 | - sh -c "[ -s result-master-centos7-onbuild ]" | |
127 | ||
128 | - sh -c "[ -s result-nginx-alpine3 ]" | |
129 | - sh -c "[ -s result-nginx-debian9 ]" | |
130 | - sh -c "[ -s result-nginx-debian8 ]" |