aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
blob: 23b84abac06fd47434ad784164977897eb90b16e (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
35
36
37
38
39
40
41
env:
  global:
    - BRANCH=stable
    - QUIET=1
    - UML_DOCKERCOMPOSE=0
    - UML_FIG=0

sudo: true

install:
  - curl -sLo - http://j.mp/install-travis-docker | 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