forked from biopython/biopython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (48 loc) · 2.55 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#Special configuration file to run tests on Travis-CI via GitHub notifications
#See http://travis-ci.org/ for details
#
#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/
#
#Similarly to test a range of PyPy release, do a self install.
#
#Note when testing Python 3, the 'python' command will invoke Python 3
#(which we now do via $PYTHON_EXE).
language: python
python:
- "2.5"
- "2.6"
- "2.7"
- "3.2"
- "jython2.5"
- "pypy"
before_install:
- "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'"
- "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"
- "sudo apt-get install clustalw clustalo | tail -n 2"
- "sudo apt-get install t-coffee muscle mafft probcons wise emboss 2>&1 | tail -n 2"
# We need NumPy, which currently isn't directly available in TravisCI
# under Python 3.2 due to an installation problem, thus this trick.
# See https://github.com/travis-ci/travis-cookbooks/issues/48
- "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then sudo apt-get install python3-numpy python3-numpy-dev 2>&1 | tail -n 2; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then ln -s /usr/lib/python3/dist-packages/numpy ~/virtualenv/python3.2/lib/python3.2/site-packages/; fi"
#Installing psycopg2 does not work under PyPy or Jython
- "export PG=yes"
- "if [[ $TRAVIS_PYTHON_VERSION == 'jython2.5' ]]; then export PG=no; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then export PG=no; fi"
- "if [[ $PG == 'yes' ]]; then pip install psycopg2 --use-mirrors 2>&1 | tail -n 2; fi"
#Installing mysql-python does not work under Python 3.2
- "export MSQL=$PG"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then export MSQL=no; fi"
- "if [[ $MSQL == 'yes' ]]; then pip install mysql-python --use-mirrors 2>&1 | tail -n 2; fi"
install:
- "/usr/bin/yes | $PYTHON_EXE setup.py install 2>&1 | tail -n 2"
before_script:
- "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then cd build/py3.2/Tests; fi"
- "if [[ $TRAVIS_PYTHON_VERSION != '3.2' ]]; then cd Tests; fi"
script:
- $PYTHON_EXE run_tests.py --offline
#The email defaults are too talkative while we're getting Travis working nicely.
notifications:
email: false