diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-09-09 21:26:40 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-09-09 21:26:56 +0200 |
commit | 6389bde0bc966e5a5850735b0b1605f7fca233f9 (patch) | |
tree | 56345be9219a808efc0f34304f8e873b866a357c | |
parent | 23cc41df555fba7345e0403eff3f4b3483cb2747 (diff) | |
download | rneovim-6389bde0bc966e5a5850735b0b1605f7fca233f9.tar.gz rneovim-6389bde0bc966e5a5850735b0b1605f7fca233f9.tar.bz2 rneovim-6389bde0bc966e5a5850735b0b1605f7fca233f9.zip |
ci/travis: skip pip3 upgrade if pip3 is missing
Workaround for travis issue:
https://github.com/travis-ci/travis-ci/issues/8363
Sometimes `pip3` works, sometimes not:
pyenv: pip3: command not found
The `pip3' command exists in these Python versions:
3.5
3.5.3
Tried these steps to fix the issue:
- add `python: 3.6` to top level of `.travis.yml`
- add `python3` to `addons.apt.packages` level of `.travis.yml`
- `pyenv global system 3.{4,5,6}`
- `pyenv global 3.6`
In all cases the presence or absence of `pip3` was random.
-rwxr-xr-x | ci/before_install.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ci/before_install.sh b/ci/before_install.sh index 7279152fb0..8b0603eb16 100755 --- a/ci/before_install.sh +++ b/ci/before_install.sh @@ -32,6 +32,10 @@ if [[ "${TRAVIS_OS_NAME}" == osx ]]; then echo "Upgrade Python 3 pip." pip3 -q install --user --upgrade pip else - echo "Upgrade Python 3 pip." - pip3 -q install --user --upgrade pip + if command -v pip3 ; then + echo "Upgrade Python 3 pip." + pip3 -q install --user --upgrade pip + else + echo 'warning: missing pip3' + fi fi |