summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-08-14 09:05:07 -0700
committerClaire McQuin <claire@getchef.com>2014-08-14 09:05:07 -0700
commitc46d5793176464c58e1b5014cb5d167c177323b6 (patch)
tree976995e85b9bb0bc99ac1c33255d077c7cb09b67 /.travis.yml
parentda2abd0709f7c7e6c6c83ccf622a4fc5f3424586 (diff)
downloadchef-c46d5793176464c58e1b5014cb5d167c177323b6.tar.gz
Only run end to end tests on Travis when secure environment variables are available.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml7
1 files changed, 4 insertions, 3 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