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: services:
- docker - docker
env: env:
global:
- playbook: opensource
- playbook: template
- playbook: upload
matrix:
- distribution: centos - distribution: centos
version: 6 version: 6
playbook: opensource
- distribution: centos
version: 6
playbook: template
- distribution: centos
version: 6
playbook: push
- distribution: centos - distribution: centos
version: 7 version: 7
playbook: opensource
- distribution: centos
version: 7
playbook: template
- distribution: centos
version: 7
playbook: push
- distribution: ubuntu - distribution: ubuntu
version: trusty version: trusty
playbook: opensource
- distribution: ubuntu
version: trusty
playbook: template
- distribution: ubuntu
version: trusty
playbook: push
- distribution: ubuntu - distribution: ubuntu
version: xenial version: xenial
playbook: opensource
- distribution: ubuntu
version: xenial
playbook: template
- distribution: ubuntu
version: xenial
playbook: push
- distribution: debian - distribution: debian
version: jessie version: jessie
playbook: opensource
- distribution: debian
version: jessie
playbook: template
- distribution: debian
version: jessie
playbook: push
- distribution: debian - distribution: debian
version: stretch version: stretch
playbook: opensource
- distribution: debian
version: stretch
playbook: template
- distribution: debian
version: stretch
playbook: push
before_install: before_install:
- 'sudo docker pull ${distribution}:${version}' - 'sudo docker pull ${distribution}:${version}'
- 'sudo docker build --no-cache --rm --file=tests/dockerfiles/Dockerfile.${distribution}-${version} --tag=${distribution}-${version}:ansible tests' - 'sudo docker build --no-cache --rm --file=tests/dockerfiles/Dockerfile.${distribution}-${version} --tag=${distribution}-${version}:ansible tests'

View File

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