only deploy when aws keys are present

This commit is contained in:
Konstantin Käfer
2014-08-27 14:36:14 +02:00
parent 59db9e03a9
commit 9d74dbad96

View File

@@ -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