Set environment variables via Travis config

Using the `env` feature of the matrix builds is a little hack so that
one can quickly see what tests failed when looking at the build summary
page.

Signed-off-by: Steven Danna <steve@chef.io>
This commit is contained in:
Steven Danna 2016-08-04 09:27:17 +01:00
parent 57d7275857
commit 185787fa74
No known key found for this signature in database
GPG key ID: 94DFB46E861A7DAE

View file

@ -17,15 +17,19 @@ matrix:
- rvm: 1.9.3
- rvm: 2.0
- rvm: 2.2
script: bundle exec rake lint test test:resources config=test/test.yaml
script: bundle exec rake $SUITE
env: SUITE="lint test test:resources config=test/test.yaml"
- rvm: 2.2
script: N=5 bundle exec rake test:functional test:resources config=test/test-extra.yaml
script: bundle exec rake $SUITE
env: SUITE="test:functional test:resources config=test/test-extra.yaml" N=5
- rvm: 2.2
bundler_args: "--without guard tools"
script: DOCKER=true bundle exec rake test:integration OS='default-ubuntu-1204'
script: bundle exec rake $SUITE
env: SUITE=test:integration OS=default-ubuntu-1204 DOCKER=true
- rvm: 2.2
bundler_args: "--without guard tools"
script: DOCKER=true bundle exec rake test:integration OS='default-ubuntu-1604'
script: bundle exec rake $SUITE
env: SUITE=test:integration OS='default-ubuntu-1604' DOCKER=true
deploy:
provider: rubygems
on: