Install PyPy 2.6 on Travis

This commit is contained in:
Donald Stufft 2015-06-11 09:35:03 -04:00
parent 51ebadb34d
commit 15cc4edec2
3 changed files with 30 additions and 2 deletions

View File

@ -20,9 +20,9 @@ env:
- TOXENV=pep8
- TOXENV=py3pep8
install: pip install tox
install: .travis/install.sh
script: tox
script: .travis/run.sh
branches:
only:

15
.travis/install.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -e
set -x
if [[ "${TOXENV}" == "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-2.6.0
pyenv global pypy-2.6.0
fi
pip install tox

13
.travis/run.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
set -e
set -x
if [[ "${TOXENV}" == "pypy" ]]; then
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv global pypy-2.6.0
fi
tox