diff options
author | Dwayne Litzenberger <dlitz@dlitz.net> | 2016-04-02 04:11:28 -0700 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@dlitz.net> | 2016-04-02 04:11:28 -0700 |
commit | ecd101ea47d280c352c9aa3aa5a317d7a69c8842 (patch) | |
tree | 81fad7c396af6e0e9e094ad80928c7f129d6105e | |
parent | bdbc79857aa1444e71529b9bb940370c571b0e84 (diff) | |
download | pycrypto-ecd101ea47d280c352c9aa3aa5a317d7a69c8842.tar.gz |
travis: Don't assume 'deactivate' is available
-rw-r--r-- | .travis.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 19015f1..b93778d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,8 +55,8 @@ before_install: - ls -l ~/.pyenv/cache || true # Show environment - if [ "$TRAVIS_SECURE_ENV_VARS" = "false" ] ; then env | sort ; fi - # Deactivate whichever virtualenv is currently in use - - deactivate + # Deactivate virtualenv if one is currently in use + - if [ "$(type -t deactivate)" = "function" ] ; then deactivate ; fi # Create pyenv cache directory if it doesn't already exist. - mkdir -p ~/.pyenv/cache # Download and verify pyenv, or use cached version if available. |