Skip to content

Commit

Permalink
Fix quote issue; Test Pypy 1.8 & 1.9 on Travis-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Jun 22, 2012
1 parent a5b6a0a commit 325e1cb
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .travis.yml
Original file line number Original file line Diff line number Diff line change
@@ -1,9 +1,11 @@
#Special configuration file to run tests on Travis-CI via GitHub notifications #Special configuration file to run tests on Travis-CI via GitHub notifications
#See http://travis-ci.org/ for details. #See http://travis-ci.org/ for details
# #
#Since Jython isn't officially available yet under Travis, we install it based #Since Jython isn't officially available yet under Travis, we install it based
#on the recipe from http://dev.hong.me/blog/2012/05/27/use-travis-ci-with-jython/ #on the recipe from http://dev.hong.me/blog/2012/05/27/use-travis-ci-with-jython/
# #
#Similarly to test a range of PyPy release, do a self install.
#
#Note when testing Python 3, the 'python' command will invoke Python 3 #Note when testing Python 3, the 'python' command will invoke Python 3
#(which we now do via $PYTHON_EXE). #(which we now do via $PYTHON_EXE).


Expand All @@ -14,17 +16,22 @@ python:
- "2.7" - "2.7"
- "3.2" - "3.2"
- "jython2.5" - "jython2.5"
- "pypy1.8"
- "pypy1.9"


install: install:
- export PYTHON_EXE=python - "export PYTHON_EXE=python"
- export JYTHON_URL='http://downloads.sourceforge.net/project/jython/jython/2.5.2/jython_installer-2.5.2.jar?r=http%3A%2F%2Fwww.jython.org%2Fdownloads.html&ts=1338089844&use_mirror=iweb' - "export JYTHON_URL='http://downloads.sourceforge.net/project/jython/jython/2.5.2/jython_installer-2.5.2.jar?r=http%3A%2F%2Fwww.jython.org%2Fdownloads.html&ts=1338089844&use_mirror=iweb'"
- "if [[ $TRAVIS_PYTHON_VERSION == 'jython2.5' ]]; then wget $JYTHON_URL -O jython_installer.jar; java -jar jython_installer.jar -s -d $HOME/jython; export PATH=$HOME/jython:$PATH; jython -c print; export PYTHON_EXE=jython; fi - "if [[ $TRAVIS_PYTHON_VERSION == 'jython2.5' ]]; then wget $JYTHON_URL -O jython_installer.jar; java -jar jython_installer.jar -s -d $HOME/jython; export PATH=$HOME/jython:$PATH; jython -c print; export PYTHON_EXE=jython; fi"
- /usr/bin/yes | $PYTHON_EXE setup.py install 2>&1 | tail - "if [[ $TRAVIS_PYTHON_VERSION == 'pypy1.8' ]]; then wget https://bitbucket.org/pypy/pypy/downloads/pypy-1.8-linux.tar.bz2 -O pypy.tar.bz2; tar -xvjf pypy.tar.bz2 | tail; export PYTHON_EXE=$PWD/pypy-1.8/bin/pypy; fi"
- sudo apt-get install t-coffee muscle mafft probcons wise emboss 2>&1 | tail - "if [[ $TRAVIS_PYTHON_VERSION == 'pypy1.9' ]]; then wget https://bitbucket.org/pypy/pypy/downloads/pypy-1.9-linux.tar.bz2 -O pypy.tar.bz2; tar -xvjf pypy.tar.bz2 | tail; export PYTHON_EXE=$PWD/pypy-1.9/bin/pypy; fi"
- "/usr/bin/yes | $PYTHON_EXE setup.py install 2>&1 | tail"
- "sudo apt-get install t-coffee muscle mafft probcons wise emboss 2>&1 | tail"


before_script: before_script:
- if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then cd build/py3.2/Tests; fi - "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then cd build/py3.2/Tests; fi"
- if [[ $TRAVIS_PYTHON_VERSION != '3.2' ]]; then cd Tests; fi - "if [[ $TRAVIS_PYTHON_VERSION != '3.2' ]]; then cd Tests; fi"

script: script:
- $PYTHON_EXE run_tests.py --offline - $PYTHON_EXE run_tests.py --offline


Expand Down

0 comments on commit 325e1cb

Please sign in to comment.