3
3
4
4
sudo : required
5
5
env :
6
+ - >
7
+ DISTRIBUTION=ubuntu-upstart
8
+ DIST_VERSION=14.04
9
+ MONGODB_VERSION=3.4
6
10
- >
7
11
DISTRIBUTION=ubuntu-upstart
8
12
DIST_VERSION=14.04
15
19
DISTRIBUTION=ubuntu-upstart
16
20
DIST_VERSION=14.04
17
21
MONGODB_VERSION=2.6
22
+ - >
23
+ DISTRIBUTION=ubuntu-upstart
24
+ DIST_VERSION=12.04-builded
25
+ MONGODB_VERSION=3.4
18
26
- >
19
27
DISTRIBUTION=ubuntu-upstart
20
28
DIST_VERSION=12.04-builded
27
35
DISTRIBUTION=ubuntu-upstart
28
36
DIST_VERSION=12.04-builded
29
37
MONGODB_VERSION=2.6
38
+ - >
39
+ DISTRIBUTION=centos
40
+ DIST_VERSION=6-builded
41
+ MONGODB_VERSION=2.6
42
+ - >
43
+ DISTRIBUTION=centos
44
+ DIST_VERSION=6-builded
45
+ MONGODB_VERSION=3.0
46
+ - >
47
+ DISTRIBUTION=centos
48
+ DIST_VERSION=6-builded
49
+ MONGODB_VERSION=3.2
50
+ - >
51
+ DISTRIBUTION=centos
52
+ DIST_VERSION=6-builded
53
+ MONGODB_VERSION=3.4
54
+ - >
55
+ DISTRIBUTION=centos
56
+ DIST_VERSION=7-builded
57
+ MONGODB_VERSION=2.6
58
+ - >
59
+ DISTRIBUTION=centos
60
+ DIST_VERSION=7-builded
61
+ MONGODB_VERSION=3.0
62
+ - >
63
+ DISTRIBUTION=centos
64
+ DIST_VERSION=7-builded
65
+ MONGODB_VERSION=3.2
66
+ - >
67
+ DISTRIBUTION=centos
68
+ DIST_VERSION=7-builded
69
+ MONGODB_VERSION=3.4
70
+ # - >
71
+ # distribution=ubuntu-upstart
72
+ # version=12.04
73
+ # - >
74
+ # distribution=debian
75
+ # version=7
30
76
31
77
services :
32
78
- docker
@@ -44,16 +90,15 @@ before_install:
44
90
sudo docker build --rm=true --file=tests/Dockerfile.${DISTRIBUTION}_${DIST_VERSION}
45
91
--tag ${DISTRIBUTION}:${DIST_VERSION} tests; else sudo docker pull ${DISTRIBUTION}:${DIST_VERSION}; fi
46
92
- sudo ln -s ${PWD} /etc/ansible/roles/greendayonfire.mongodb
47
-
93
+
48
94
script :
49
95
# Test 1
50
96
- >
51
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION}
52
- -e image_name=${DISTRIBUTION}:${DIST_VERSION}
97
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION} -e image_name=${DISTRIBUTION}:${DIST_VERSION}
53
98
# Idempotence test
54
99
- >
55
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION}
56
- -e image_name=${DISTRIBUTION}:${DIST_VERSION} | grep -q 'changed=0.*failed=0'
100
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION} -e image_name=${DISTRIBUTION}:${DIST_VERSION}
101
+ | grep -q 'changed=0.*failed=0'
57
102
&& (echo 'Idempotence test: pass' && exit 0)
58
103
|| (echo 'Idempotence test: fail' && exit 1)
59
104
0 commit comments