forked from biopython/biopython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (42 loc) · 1.66 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
#Special configuration file to run tests on Travis-CI via GitHub notifications
#See http://travis-ci.org/ for details
#
#Note when testing Python 3, the 'python' command will invoke Python 3
#and similarly for PyPy too.
language: python
python:
- "2.5"
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "pypy"
before_install:
- "export PY3=no"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then export PY3=yes; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then export PY3=yes; fi"
- "sudo apt-get install clustalw clustalo"
- "sudo apt-get install t-coffee muscle mafft probcons wise emboss"
#Installing psycopg2 does not work under PyPy or Jython
- "export PG=yes"
- "if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then export PG=no; fi"
- "if [[ $PG == 'yes' ]]; then pip install psycopg2 --use-mirrors; fi"
#Installing mysql-python does not work under Python 3.2
- "export MSQL=$PG"
- "if [[ $PY3 == 'yes' ]]; then export MSQL=no; fi"
- "if [[ $MSQL == 'yes' ]]; then pip install mysql-python --use-mirrors; fi"
#Pre-run 2to3 separately to try and appease the TravisCI watchdog step limits:
- "if [[ $PY3 == 'yes' ]]; then python do2to3.py Bio; fi"
- "if [[ $PY3 == 'yes' ]]; then python do2to3.py BioSQL; fi"
- "if [[ $PY3 == 'yes' ]]; then python do2to3.py Tests; fi"
install:
- "/usr/bin/yes | python setup.py install"
before_script:
- cd Tests
- "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then cd ../build/py3.2/Tests; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then cd ../build/py3.3/Tests; fi"
script:
- python run_tests.py --offline
#The email defaults are too talkative while we're getting Travis working nicely.
notifications:
email: false