From bbe9002f61388a1266966443f19dc02d4a88cd48 Mon Sep 17 00:00:00 2001 From: Bill Prin Date: Tue, 28 Jun 2016 11:04:26 -0700 Subject: [PATCH] Don't decrypt on PR --- .travis.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index b7172e7b046..b4e93d45e00 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,12 +22,20 @@ addons: - portaudio19-dev before_install: - pip install --upgrade pip wheel virtualenv -- openssl aes-256-cbc -k "$secrets_password" -in secrets.tar.enc -out secrets.tar -d -- tar xvf secrets.tar +- if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then + openssl aes-256-cbc -k "$secrets_password" -in secrets.tar.enc -out secrets.tar -d; + tar xvf secrets.tar; + fi install: - pip install nox-automation coverage script: -- source ${TRAVIS_BUILD_DIR}/testing/resources/test-env.sh -- nox --stop-on-first-error -s lint travis +- if [ $TRAVIS_SECURE_ENV_VARS == "true" ] ; then + source ${TRAVIS_BUILD_DIR}/testing/resources/test-env.sh; + nox --stop-on-first-error -s lint travis; + else + # only run lint on external PRs + nox --stop-on-first-error -s lint travis; + fi + after_script: - coverage report