Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 51 lines (45 sloc) 2.605 kb
98369a4 Peter Cock Adding Travis-CI configuration file for automated testing
peterjc authored
1 #Special configuration file to run tests on Travis-CI via GitHub notifications
325e1cb Peter Cock Fix quote issue; Test Pypy 1.8 & 1.9 on Travis-CI
peterjc authored
2 #See http://travis-ci.org/ for details
a5b6a0a Peter Cock Install and test with Jython 2.5 under Travis-CI
peterjc authored
3 #
4 #Since Jython isn't officially available yet under Travis, we install it based
5 #on the recipe from http://dev.hong.me/blog/2012/05/27/use-travis-ci-with-jython/
6 #
325e1cb Peter Cock Fix quote issue; Test Pypy 1.8 & 1.9 on Travis-CI
peterjc authored
7 #Similarly to test a range of PyPy release, do a self install.
8 #
98369a4 Peter Cock Adding Travis-CI configuration file for automated testing
peterjc authored
9 #Note when testing Python 3, the 'python' command will invoke Python 3
a5b6a0a Peter Cock Install and test with Jython 2.5 under Travis-CI
peterjc authored
10 #(which we now do via $PYTHON_EXE).
98369a4 Peter Cock Adding Travis-CI configuration file for automated testing
peterjc authored
11
12 language: python
13 python:
14 - "2.5"
15 - "2.6"
16 - "2.7"
17 - "3.2"
a5b6a0a Peter Cock Install and test with Jython 2.5 under Travis-CI
peterjc authored
18 - "jython2.5"
325e1cb Peter Cock Fix quote issue; Test Pypy 1.8 & 1.9 on Travis-CI
peterjc authored
19 - "pypy1.8"
20 - "pypy1.9"
98369a4 Peter Cock Adding Travis-CI configuration file for automated testing
peterjc authored
21
22 install:
325e1cb Peter Cock Fix quote issue; Test Pypy 1.8 & 1.9 on Travis-CI
peterjc authored
23 - "export PYTHON_EXE=python"
24 - "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'"
379a480 Peter Cock Less verbose TravisCI install logs
peterjc authored
25 - "if [[ $TRAVIS_PYTHON_VERSION == 'jython2.5' ]]; then wget $JYTHON_URL -O jython_installer.jar; java -jar jython_installer.jar -s -d $HOME/jython | tail -n 2; export PATH=$HOME/jython:$PATH; jython -c print; export PYTHON_EXE=jython; fi"
26 - "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 -n 2; export PYTHON_EXE=$PWD/pypy-1.8/bin/pypy; fi"
27 - "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 -n 2; export PYTHON_EXE=$PWD/pypy-1.9/bin/pypy; fi"
28 - "/usr/bin/yes | $PYTHON_EXE setup.py install 2>&1 | tail -n 2"
29 - "sudo apt-get install t-coffee muscle mafft probcons wise emboss 2>&1 | tail -n 2"
9a5e721 Peter Cock Install psycopg2 for C Python under Travis-CI (for BioSQL)
peterjc authored
30 #Installing psycopg2 does not work under PyPy or Jython
31 - "export PG=yes"
32 - "if [[ $TRAVIS_PYTHON_VERSION == 'jython2.5' ]]; then export PG=no; fi"
33 - "if [[ $TRAVIS_PYTHON_VERSION == 'pypy1.8' ]]; then export PG=no; fi"
34 - "if [[ $TRAVIS_PYTHON_VERSION == 'pypy1.9' ]]; then export PG=no; fi"
379a480 Peter Cock Less verbose TravisCI install logs
peterjc authored
35 - "if [[ $PG == 'yes' ]]; then pip install psycopg2 --use-mirrors 2>&1 | tail -n 2; fi"
a791db8 Peter Cock Install mysql-python under TravisCI to test BioSQL
peterjc authored
36 #Installing mysql-python does not work under Python 3.2
37 - "export MSQL=$PG"
38 - "if [[ $TRAVIS_PYTHON_VERSION == 'python3.2' ]]; then export MSQL=no; fi"
39 - "if [[ $MSQL == 'yes' ]]; then pip install mysql-python --use-mirrors 2>&1 | tail -n 2; fi"
98369a4 Peter Cock Adding Travis-CI configuration file for automated testing
peterjc authored
40
41 before_script:
325e1cb Peter Cock Fix quote issue; Test Pypy 1.8 & 1.9 on Travis-CI
peterjc authored
42 - "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then cd build/py3.2/Tests; fi"
43 - "if [[ $TRAVIS_PYTHON_VERSION != '3.2' ]]; then cd Tests; fi"
44
98369a4 Peter Cock Adding Travis-CI configuration file for automated testing
peterjc authored
45 script:
a5b6a0a Peter Cock Install and test with Jython 2.5 under Travis-CI
peterjc authored
46 - $PYTHON_EXE run_tests.py --offline
98369a4 Peter Cock Adding Travis-CI configuration file for automated testing
peterjc authored
47
48 #The email defaults are too talkative while we're getting Travis working nicely.
49 notifications:
50 email: false
Something went wrong with that request. Please try again.