ci/before-script.sh in mixlib-install-2.0.0 vs ci/before-script.sh in mixlib-install-2.0.1
- old
+ new
@@ -17,15 +17,19 @@
do
unset $ruby_env_var
done
-# download terraform
-wget "https://releases.hashicorp.com/terraform/0.7.4/terraform_0.7.4_linux_amd64.zip"
+# Don't run acceptance tests on forks. The decryption keys are not available.
+if [ "${TRAVIS_REPO_SLUG}" = "chef/mixlib-install" ]; then
-# inflate archive
-unzip terraform_0.7.4_linux_amd64.zip -d bin
+ # download terraform
+ wget "https://releases.hashicorp.com/terraform/0.7.4/terraform_0.7.4_linux_amd64.zip"
-# decrypt pem
-openssl aes-256-cbc -K $encrypted_e2edbb28e76c_key -iv $encrypted_e2edbb28e76c_iv -in ci/es-infrastructure.pem.enc -out es-infrastructure.pem -d
-mkdir -p ~/.ssh
-mv es-infrastructure.pem ~/.ssh
+ # inflate archive
+ unzip terraform_0.7.4_linux_amd64.zip -d bin
+
+ # decrypt pem
+ openssl aes-256-cbc -K $encrypted_e2edbb28e76c_key -iv $encrypted_e2edbb28e76c_iv -in ci/es-infrastructure.pem.enc -out es-infrastructure.pem -d
+ mkdir -p ~/.ssh
+ mv es-infrastructure.pem ~/.ssh
+fi