aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
blob: a3297007a6b7ef3264f7dde471d602f4b8d63bf3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
sudo: true

install:
  - curl -sLo - https://github.com/moul/travis-docker/raw/master/install.sh | sh -xe

script:
  - echo "==> Building the main Docker images..."
  - ./run 'docker build -f centos6/Dockerfile      -t ansible  centos6      &&  docker run -i ansible > result-centos6'
  - ./run 'docker build -f centos7/Dockerfile      -t ansible  centos7      &&  docker run -i ansible > result-centos7'
  - ./run 'docker build -f debian7/Dockerfile      -t ansible  debian7      &&  docker run -i ansible > result-debian7'
  - ./run 'docker build -f debian8/Dockerfile      -t ansible  debian8      &&  docker run -i ansible > result-debian8'
  - ./run 'docker build -f ubuntu12.04/Dockerfile  -t ansible  ubuntu12.04  &&  docker run -i ansible > result-ubuntu12.04'
  - ./run 'docker build -f ubuntu14.04/Dockerfile  -t ansible  ubuntu14.04  &&  docker run -i ansible > result-ubuntu14.04'
  - ./run 'docker build -f centos6-onbuild/Dockerfile      -t ansible  centos6-onbuild      &&  docker run -i ansible > result-centos6-onbuild'
  - ./run 'docker build -f centos7-onbuild/Dockerfile      -t ansible  centos7-onbuild      &&  docker run -i ansible > result-centos7-onbuild'
  - ./run 'docker build -f debian7-onbuild/Dockerfile      -t ansible  debian7-onbuild      &&  docker run -i ansible > result-debian7-onbuild'
  - ./run 'docker build -f debian8-onbuild/Dockerfile      -t ansible  debian8-onbuild      &&  docker run -i ansible > result-debian8-onbuild'
  - ./run 'docker build -f ubuntu12.04-onbuild/Dockerfile  -t ansible  ubuntu12.04-onbuild  &&  docker run -i ansible > result-ubuntu12.04-onbuild'
  - ./run 'docker build -f ubuntu14.04-onbuild/Dockerfile  -t ansible  ubuntu14.04-onbuild  &&  docker run -i ansible > result-ubuntu14.04-onbuild'


  - echo "==> Validating the test results..."
  - grep '^ansible-playbook' result-centos6      ||  exit 1
  - grep '^ansible-playbook' result-centos7      ||  exit 1
  - grep '^ansible-playbook' result-debian7      ||  exit 1
  - grep '^ansible-playbook' result-debian8      ||  exit 1
  - grep '^ansible-playbook' result-ubuntu12.04  ||  exit 1
  - grep '^ansible-playbook' result-ubuntu14.04  ||  exit 1
  - grep '^ansible-playbook' result-centos6-onbuild      ||  exit 1
  - grep '^ansible-playbook' result-centos7-onbuild      ||  exit 1
  - grep '^ansible-playbook' result-debian7-onbuild      ||  exit 1
  - grep '^ansible-playbook' result-debian8-onbuild      ||  exit 1
  - grep '^ansible-playbook' result-ubuntu12.04-onbuild  ||  exit 1
  - grep '^ansible-playbook' result-ubuntu14.04-onbuild  ||  exit 1