From 9d74dbad96380fb90bfcebf41d4ac516330f5dae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Wed, 27 Aug 2014 14:36:14 +0200 Subject: [PATCH] only deploy when aws keys are present --- scripts/travis_script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/travis_script.sh b/scripts/travis_script.sh index 2fc6029b4..f1cad6b9d 100755 --- a/scripts/travis_script.sh +++ b/scripts/travis_script.sh @@ -12,7 +12,7 @@ if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then ./scripts/run_tests.sh (cd ./node_modules/mapbox-gl-test-suite/ && (./bin/compare_images.js || true)) - if [ "${TRAVIS_PULL_REQUEST}" == "false" ] ; then + if [ ! -z "${AWS_ACCESS_KEY_ID}" ] && [ ! -z "${AWS_SECRET_ACCESS_KEY}" ] ; then (cd ./node_modules/mapbox-gl-test-suite/ && ./bin/deploy_results.sh) fi