From a71f853825c707c2b160424ebb8cc74d7aa48952 Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Wed, 30 Dec 2015 11:18:59 +0200 Subject: Support Jython on Travis This is a bit complicated for a couple of reasons. Jython is not available out of the box on Travis and needs to be installed manually, but the released version (2.7.0) doesn't play nice with pip, resulting in being completely unusable. Thus we're building Jython ourselves from the repository, which works, as long as tox can find where the jython executable is. Closes #288 --- .travis.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 09af14a7..9075168a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,18 +14,28 @@ matrix: env: TOXENV=pypy - python: 3.5 env: TOXENV=pylint + - python: 2.7 + env: JYTHON=true; TOXENV=jython + before_install: + - if [ "$JYTHON" == "true" ]; then hg clone http://hg.python.org/jython; cd jython; ant; cd ..; chmod +x "$(pwd)/jython/dist/bin/jython"; fi + - if [ "$JYTHON" == "true" ]; then export PYTHON_EXE="$(pwd)/jython/dist/bin/jython"; else export PYTHON_EXE=python; fi + - if [ "$JYTHON" == "true" ]; then alias jython="$(pwd)/jython/dist/bin/jython"; export PATH="$(pwd)/jython/dist/bin:$PATH"; fi + - if [ "$JYTHON" == "true" ]; then wget https://bootstrap.pypa.io/get-pip.py; $PYTHON_EXE get-pip.py; fi - python --version - uname -a - lsb_release -a install: - - pip install tox - - virtualenv --version - - easy_install --version - - pip --version - - tox --version + - $PYTHON_EXE -m pip install pip -U + - python -m pip install tox + - python -m pip install pip -U + - $PYTHON_EXE -m pip install tox + - $PYTHON_EXE -m virtualenv --version + - $PYTHON_EXE -m easy_install --version + - $PYTHON_EXE -m pip --version + - $PYTHON_EXE -m tox --version script: - - tox -e $TOXENV + - python -m tox -e $TOXENV after_failure: - more .tox/log/* | cat - more .tox/*/log/* | cat -- cgit v1.2.1