From 5681bd2fc36a897f900107b48c13f4cfd4df1d07 Mon Sep 17 00:00:00 2001 From: Lindsey Heagy Date: Wed, 25 Jul 2018 10:17:15 -0500 Subject: [PATCH] Travis bug (#103) * update travis * try double equals for travis comparison * travis debugging * travis debugging * travis debugging * travis debugging * travis debugging * travis debugging * travis debugging * Deployment branch check was okay, but PR test was not. TRAVIS_PULL_REQUEST is equal to "false" or the PR#, thus it is never 'true" So just check if it is not equal to "false" * travis debugging - thanks joe --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5fc2daa24..8cf89d048 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,10 +51,11 @@ after_success: echo "Not deploying (because this is not a deployment branch)" ; exit 0 ; fi - - if [ "$TRAVIS_PULL_REQUEST" = "true" ]; then + - if ! [ $TRAVIS_PULL_REQUEST = "false" ] ; then echo "Not deploying (because this is a pull request)" ; exit 0 ; fi + - echo "Deploying" # unpack credentials - openssl aes-256-cbc -K $encrypted_5813a1339455_key -iv $encrypted_5813a1339455_iv -in credentials.tar.gz.enc -out credentials.tar.gz -d @@ -63,7 +64,7 @@ after_success: # deploy to pypi - mv credentials/.pypirc ~/.pypirc ; - python setup.py sdist ; - - twine upload dist/* --skip-existing; + - twine upload dist/* --skip-existing ; notifications: slack: simpeg:1KZq5giMtlJJ58TijIPgqf7n