mirror of
https://github.com/neovim/neovim.git
synced 2024-12-21 19:55:04 -07:00
45e81e03f8
macOS travis builds recently started failing (travis caches were cleared recently, maybe related). python2 is reasonably covered by linux CI. Not going to waste time on it for macOS CI. ==> Installing python@2 ==> Downloading https://homebrew.bintray.com/bottles/python@2-2.7.14_3.el_capita ==> Pouring python@2-2.7.14_3.el_capitan.bottle.tar.gz Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink bin/2to3-2 Target /usr/local/bin/2to3-2 is a symlink belonging to python. You can unlink it: brew unlink python To force the link and overwrite all conflicting files: brew link --overwrite python@2 To list all files that would be deleted: brew link --overwrite --dry-run python@2 Possible conflicting files are: /usr/local/bin/2to3-2 -> /usr/local/Cellar/python/2.7.12_1/bin/2to3-2 /usr/local/bin/2to3-2.7 -> /usr/local/Cellar/python/2.7.12_1/bin/2to3-2.7 /usr/local/bin/idle -> /usr/local/Cellar/python/2.7.12_1/bin/idle ...
49 lines
1.1 KiB
Bash
Executable File
49 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
if [[ "${CI_TARGET}" == lint ]]; then
|
|
exit
|
|
fi
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
|
|
brew update
|
|
fi
|
|
|
|
echo 'python info:'
|
|
(
|
|
2>&1 python --version || true
|
|
2>&1 python2 --version || true
|
|
2>&1 python3 --version || true
|
|
2>&1 pip --version || true
|
|
2>&1 pip2 --version || true
|
|
2>&1 pip3 --version || true
|
|
echo 'pyenv versions:'
|
|
2>&1 pyenv versions || true
|
|
) | sed 's/^/ /'
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
|
|
echo "Upgrade Python 3."
|
|
brew upgrade python
|
|
echo "Upgrade Python 3 pip."
|
|
pip3 -q install --user --upgrade pip
|
|
else
|
|
echo "Upgrade Python 2 pip."
|
|
pip2.7 -q install --user --upgrade pip
|
|
echo "Upgrade Python 3 pip."
|
|
# Allow failure. pyenv pip3 on travis is broken:
|
|
# https://github.com/travis-ci/travis-ci/issues/8363
|
|
pip3 -q install --user --upgrade pip || true
|
|
fi
|
|
|
|
echo "Install node (LTS)"
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == osx ]] || [ ! -f ~/.nvm/nvm.sh ]; then
|
|
curl -o ~/.nvm/nvm.sh https://raw.githubusercontent.com/creationix/nvm/master/nvm.sh
|
|
fi
|
|
|
|
source ~/.nvm/nvm.sh
|
|
nvm install --lts
|
|
nvm use --lts
|