From 48e18cfc49e09c219b84aeb136fa1b05822dce6b Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sun, 27 Aug 2017 01:50:10 +0300 Subject: [PATCH] travis: check for secure env vars Signed-off-by: Ruslan Kuprieiev --- functest/test-import.sh | 2 +- functest/test-sync-aws.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functest/test-import.sh b/functest/test-import.sh index 3a4aee612..75ab62857 100755 --- a/functest/test-import.sh +++ b/functest/test-import.sh @@ -14,7 +14,7 @@ dvc_info "Import from http url" dvc import $DATA_S3/Tags.xml data/http dvc_check_files "data/http" -if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then +if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_SECURE_ENV_VARS" == "true" ]]; then dvc_info "Import from s3 url" dvc config aws.region $REGION dvc import s3://dataversioncontrol/functests/stackoverflow_raw_small/Tags.xml data/s3 diff --git a/functest/test-sync-aws.sh b/functest/test-sync-aws.sh index 103495d76..798565c13 100755 --- a/functest/test-sync-aws.sh +++ b/functest/test-sync-aws.sh @@ -4,7 +4,7 @@ set -e source common.sh -if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then +if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_SECURE_ENV_VARS" == "true" ]]; then dvc_create_repo dvc_info "Setting up AWS cloud"