Remove global variable from Travis build matrix

Global variables rewrite each other on Travis instead of creating a build matrix
This commit is contained in:
Alessandro Fael Garcia 2018-04-16 15:56:56 -07:00
parent 60331d7b39
commit 1bedaa9e0c
2 changed files with 55 additions and 18 deletions

View File

@ -3,23 +3,60 @@ sudo: required
services:
- docker
env:
global:
- playbook: opensource
- playbook: template
- playbook: upload
matrix:
- distribution: centos
version: 6
playbook: opensource
- distribution: centos
version: 6
playbook: template
- distribution: centos
version: 6
playbook: push
- distribution: centos
version: 7
playbook: opensource
- distribution: centos
version: 7
playbook: template
- distribution: centos
version: 7
playbook: push
- distribution: ubuntu
version: trusty
playbook: opensource
- distribution: ubuntu
version: trusty
playbook: template
- distribution: ubuntu
version: trusty
playbook: push
- distribution: ubuntu
version: xenial
playbook: opensource
- distribution: ubuntu
version: xenial
playbook: template
- distribution: ubuntu
version: xenial
playbook: push
- distribution: debian
version: jessie
playbook: opensource
- distribution: debian
version: jessie
playbook: template
- distribution: debian
version: jessie
playbook: push
- distribution: debian
version: stretch
playbook: opensource
- distribution: debian
version: stretch
playbook: template
- distribution: debian
version: stretch
playbook: push
before_install:
- 'sudo docker pull ${distribution}:${version}'
- 'sudo docker build --no-cache --rm --file=tests/dockerfiles/Dockerfile.${distribution}-${version} --tag=${distribution}-${version}:ansible tests'

View File

@ -7,5 +7,5 @@
vars:
main_push_enable: true
main_push_location: ../files/nginx.conf
http_push_enable: false
http_push_enable: true
http_push_location: ../files/http/*.conf