diff options
author | Claire McQuin <claire@getchef.com> | 2014-08-14 09:05:07 -0700 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-08-14 09:05:07 -0700 |
commit | c46d5793176464c58e1b5014cb5d167c177323b6 (patch) | |
tree | 976995e85b9bb0bc99ac1c33255d077c7cb09b67 | |
parent | da2abd0709f7c7e6c6c83ccf622a4fc5f3424586 (diff) | |
download | chef-c46d5793176464c58e1b5014cb5d167c177323b6.tar.gz |
Only run end to end tests on Travis when secure environment variables are available.
-rw-r--r-- | .travis.yml | 7 | ||||
-rw-r--r-- | CHANGELOG.md | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 324edcadc1..5ce525eedf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,11 +33,12 @@ matrix: before_install: - echo -n $DO_KEY_CHUNK_{0..30} >> ~/.ssh/id_aws.base64 - cat ~/.ssh/id_aws.base64 | tr -d ' ' | base64 --decode > ~/.ssh/id_aws.pem - before_script: cd kitchen-tests + before_script: + - cd kitchen-tests script: - - bundle exec kitchen test + - '[ "$TRAVIS_SECURE_ENV_VARS" = "true" ] && bundle exec kitchen test' after_script: - - bundle exec kitchen destroy + - '[ "$TRAVIS_SECURE_ENV_VARS" = "true" ] && bundle exec kitchen destroy' env: - KITCHEN_YAML=.kitchen.travis.yml - EC2_SSH_KEY_PATH=~/.ssh/id_aws.pem diff --git a/CHANGELOG.md b/CHANGELOG.md index d71e70627b..5c4e040370 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,7 +28,7 @@ * Fix SuSE package removal failure (Issue 1732). * Enable Travis to run Test Kitchen with Kitchen EC2. * End-to-end tests for Ubuntu 12.04 - +* Only run end-to-end tests when secure environment variables are present. * [**Phil Dibowitz**](https://github.com/jaymzh): 'group' provider on OSX properly uses 'dscl' to determine existing groups |