summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-12-30 11:18:59 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2015-12-30 16:27:22 +0200
commita71f853825c707c2b160424ebb8cc74d7aa48952 (patch)
treedbbcc305d099e7cf1ec29cd7f2415638b0207b01 /.travis.yml
parent3a5d8d83c57ef15fae6a5cfc0a2769097090eb32 (diff)
downloadastroid-git-a71f853825c707c2b160424ebb8cc74d7aa48952.tar.gz
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
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml22
1 files changed, 16 insertions, 6 deletions
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