Install PyPy 2.6 on Travis
This commit is contained in:
parent
51ebadb34d
commit
15cc4edec2
@ -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
15
.travis/install.sh
Executable 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
13
.travis/run.sh
Executable 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
|
||||
Loading…
Reference in New Issue
Block a user