travis/run.sh: simplify

This commit is contained in:
Cosimo Lupo 2016-04-11 01:52:49 +01:00
parent 573cf4c266
commit 893d5d795a

View File

@ -3,14 +3,11 @@
set -e
set -x
if [[ "$(uname -s)" == "Darwin" ]]; then
if [[ "$(uname -s)" == "Darwin" || "${TOXENV}" == "pypy" ]]; then
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
else
if [[ "${TOXENV}" == "pypy" ]]; then
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
fi
fi
source ~/.venv/bin/activate
tox