Unfuck pypy builds

This commit is contained in:
Markus Unterwaditzer 2015-12-17 22:48:21 +01:00
parent 709377561f
commit 4970c7ed78
2 changed files with 26 additions and 0 deletions

View file

@ -4,6 +4,16 @@ sudo: true
language: python
install:
- if [ "$TRAVIS_PYTHON_VERSION" == "pypy" ]; then
git clone https://github.com/yyuu/pyenv.git ~/.pyenv;
PYENV_ROOT="$HOME/.pyenv";
PATH="$PYENV_ROOT/bin:$PATH";
eval "$(pyenv init -)";
pyenv install pypy-4.0.1;
pyenv global pypy-4.0.1;
python --version;
pip --version;
fi
- "pip install -U pip"
- "pip install wheel"
- "make -e install-dev"

View file

@ -24,6 +24,22 @@ p("language: python")
p("")
with section("install"):
# Travis uses an outdated PyPy, this installs the most recent one. This
# makes the tests run on Travis' legacy infrastructure, but so be it.
# temporary pyenv installation to get pypy-2.6 before container infra
# upgrade
# Taken from werkzeug, which took it from pyca/cryptography
p('- if [ "$TRAVIS_PYTHON_VERSION" == "pypy" ]; then')
p(' git clone https://github.com/yyuu/pyenv.git ~/.pyenv;')
p(' PYENV_ROOT="$HOME/.pyenv";')
p(' PATH="$PYENV_ROOT/bin:$PATH";')
p(' eval "$(pyenv init -)";')
p(' pyenv install pypy-4.0.1;')
p(' pyenv global pypy-4.0.1;')
p(' python --version;')
p(' pip --version;')
p(' fi')
p('- "pip install -U pip"')
p('- "pip install wheel"')
p('- "make -e install-dev"')