mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 05:35:10 -07:00
a3399f9a63
Install Python 3.3 from the Deadsnakes PPA. As this doesn't have pip, install it manually into ~/.local. ~/.local/bin is apparently in Travis's default PATH, meaning "pip" doesn't refer to Python 2's pip anymore, but to the manually installed Python 3 version. Updated the scripts to use version- suffixed executable names (e.g. pip2.7). Set CC=cc to use system's default compiler when installing Python modules, as gcc on OS X had a problem with compiling one of the dependencies of the Neovim Python module.
31 lines
1003 B
Bash
Executable File
31 lines
1003 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
if [[ -n "${CI_TARGET}" ]]; then
|
|
exit
|
|
fi
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
|
|
brew install gettext
|
|
elif [[ "${BUILD_MINGW}" == ON ]]; then
|
|
# TODO: When Travis gets a recent version of Mingw-w64 use packages:
|
|
# binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64-dev mingw-w64-tools
|
|
|
|
echo "Downloading MinGW..."
|
|
curl -sSL "http://downloads.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-4.8-release/i686-w64-mingw32-gcc-4.8.0-linux64_rubenvb.tar.xz" | tar xJf - -C "${HOME}/.local"
|
|
fi
|
|
|
|
# Set CC to default to avoid compilation problems
|
|
# when installing Python modules.
|
|
echo "Install neovim module and coveralls for Python 2."
|
|
CC=cc pip2.7 install --user --upgrade neovim cpp-coveralls
|
|
|
|
echo "Install neovim module for Python 3."
|
|
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
|
|
CC=cc pip3 install --user --upgrade neovim
|
|
else
|
|
CC=cc pip3.3 install --user --upgrade neovim
|
|
fi
|