Cosimo Lupo 834150b316 travis: only install pytest and don't run jython inside virtualenv
https://travis-ci.org/anthrotype/fonttools/jobs/123273641

When I do `pip install -r dev-requirements.txt` from within a virtual env,
jython sits for 3-4 minutes doing nothing, then the Travis shell exits with this cryptic error:

/usr/bin/env: python2.7: Argument list too long
2016-04-15 10:19:23 +01:00

21 lines
617 B
Bash
Executable File

#!/bin/bash
set -e
set -x
if [[ "$(uname -s)" == "Darwin" || "${TOXENV}" == "pypy" || "${TOXENV}" == "jython" ]]; then
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
fi
if [[ "${TOXENV}" == "jython" ]]; then
# tox is not working with Jython, so here we simply call py.test ourselves.
# See: https://bitbucket.org/hpk42/tox/issues/326/oserror-not-a-directory-when-creating-env
# We also ignore any error for now, until we fix the many test failures...
pyenv global jython-2.7.1b3
jython -m pytest || true
else
source ~/.venv/bin/activate
tox
fi