aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.travis.yml80
1 files changed, 44 insertions, 36 deletions
diff --git a/.travis.yml b/.travis.yml
index 9cc3e37..ad12eaa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,41 +1,49 @@
1env:
2 global:
3 - BRANCH=stable
4 - QUIET=1
5 - UML_DOCKERCOMPOSE=0
6 - UML_FIG=0
7
8sudo: true 1sudo: true
2services:
3 - docker
9 4
10install: 5before_install:
11 - curl -sLo - http://j.mp/install-travis-docker | sh -xe 6 - docker info
7 - docker version
12 8
13script: 9 - docker build -t ansible_trusty ubuntu14.04
14 - echo "==> Building the main Docker images..." 10 - docker build -t ansible_precise ubuntu12.04
15 - ./run 'docker build -t ansible centos6 && docker run -i ansible > result-centos6' 11 - docker build -t ansible_jessie debian8
16 - ./run 'docker build -t ansible centos7 && docker run -i ansible > result-centos7' 12 - docker build -t ansible_wheezy debian7
17 - ./run 'docker build -t ansible debian7 && docker run -i ansible > result-debian7' 13 - docker build -t ansible_centos7 centos7
18 - ./run 'docker build -t ansible debian8 && docker run -i ansible > result-debian8' 14 - docker build -t ansible_centos6 centos6
19 - ./run 'docker build -t ansible ubuntu12.04 && docker run -i ansible > result-ubuntu12.04'
20 - ./run 'docker build -t ansible ubuntu14.04 && docker run -i ansible > result-ubuntu14.04'
21 - ./run 'docker build -t ansible centos6-onbuild && docker run -i ansible > result-centos6-onbuild'
22 - ./run 'docker build -t ansible centos7-onbuild && docker run -i ansible > result-centos7-onbuild'
23 - ./run 'docker build -t ansible debian7-onbuild && docker run -i ansible > result-debian7-onbuild'
24 - ./run 'docker build -t ansible debian8-onbuild && docker run -i ansible > result-debian8-onbuild'
25 - ./run 'docker build -t ansible ubuntu12.04-onbuild && docker run -i ansible > result-ubuntu12.04-onbuild'
26 - ./run 'docker build -t ansible ubuntu14.04-onbuild && docker run -i ansible > result-ubuntu14.04-onbuild'
27 15
16 - docker build -t ansible_trusty_onbuild ubuntu14.04-onbuild
17 - docker build -t ansible_precise_onbuild ubuntu12.04-onbuild
18 - docker build -t ansible_jessie_onbuild debian8-onbuild
19 - docker build -t ansible_wheezy_onbuild debian7-onbuild
20 - docker build -t ansible_centos7_onbuild centos7-onbuild
21 - docker build -t ansible_centos6_onbuild centos6-onbuild
22
23script:
24 - docker run -i ansible_trusty > result-ubuntu14.04
25 - docker run -i ansible_precise > result-ubuntu12.04
26 - docker run -i ansible_jessie > result-debian8
27 - docker run -i ansible_wheezy > result-debian7
28 - docker run -i ansible_centos7 > result-centos7
29 - docker run -i ansible_centos6 > result-centos6
30 - docker run -i ansible_trusty_onbuild > result-ubuntu14.04-onbuild
31 - docker run -i ansible_precise_onbuild > result-ubuntu12.04-onbuild
32 - docker run -i ansible_jessie_onbuild > result-debian8-onbuild
33 - docker run -i ansible_wheezy_onbuild > result-debian7-onbuild
34 - docker run -i ansible_centos7_onbuild > result-centos7-onbuild
35 - docker run -i ansible_centos6_onbuild > result-centos6-onbuild
28 36
29 - echo "==> Validating the test results..." 37 - echo "==> Validating the test results..."
30 - grep '^ansible-playbook' result-centos6 || exit 1 38 - sh -c "[ -s result-ubuntu14.04 ]"
31 - grep '^ansible-playbook' result-centos7 || exit 1 39 - sh -c "[ -s result-ubuntu12.04 ]"
32 - grep '^ansible-playbook' result-debian7 || exit 1 40 - sh -c "[ -s result-debian8 ]"
33 - grep '^ansible-playbook' result-debian8 || exit 1 41 - sh -c "[ -s result-debian7 ]"
34 - grep '^ansible-playbook' result-ubuntu12.04 || exit 1 42 - sh -c "[ -s result-centos7 ]"
35 - grep '^ansible-playbook' result-ubuntu14.04 || exit 1 43 - sh -c "[ -s result-centos6 ]"
36 - grep '^ansible-playbook' result-centos6-onbuild || exit 1 44 - sh -c "[ -s result-ubuntu14.04-onbuild ]"
37 - grep '^ansible-playbook' result-centos7-onbuild || exit 1 45 - sh -c "[ -s result-ubuntu12.04-onbuild ]"
38 - grep '^ansible-playbook' result-debian7-onbuild || exit 1 46 - sh -c "[ -s result-debian8-onbuild ]"
39 - grep '^ansible-playbook' result-debian8-onbuild || exit 1 47 - sh -c "[ -s result-debian7-onbuild ]"
40 - grep '^ansible-playbook' result-ubuntu12.04-onbuild || exit 1 48 - sh -c "[ -s result-centos7-onbuild ]"
41 - grep '^ansible-playbook' result-ubuntu14.04-onbuild || exit 1 49 - sh -c "[ -s result-centos6-onbuild ]"