forked from biopython/biopython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (51 loc) · 2.05 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
55
56
57
#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.6"
- "2.7"
- "3.3"
- "3.4"
- "pypy"
- "pypy3"
before_install:
- "export PY3=yes"
- "if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then export PY3=no; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then export PY3=no; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then export PY3=no; fi"
- "export PYPY=no"
- "if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then export PYPY=yes; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == 'pypy3' ]]; then export PYPY=yes; fi"
#Misc command line tools we can call
- "sudo apt-get install clustalw clustalo"
- "sudo apt-get install muscle mafft probcons wise emboss"
#Suspect an update of t-coffee is causing the test run to stall...
# - "sudo apt-get install --no-install-recommends t-coffee"
- "sudo apt-get install samtools bwa"
#Misc python modules we can use as soft dependencies
- "if [[ $PYPY != 'yes' ]]; then pip install reportlab; fi"
- "pip install rdflib"
#Not hosted on PyPI so this need allow external switch:
#Currently pypy3-2.4.0 self reports as Python 3.2,
#which is not supported by mysql-connector-python
- "if [[ $TRAVIS_PYTHON_VERSION != 'pypy3' ]]; then pip install --allow-all-external mysql-connector-python; fi"
#Installing psycopg2 does not work under PyPy or Jython
- "export PG=yes"
- "if [[ $PYPY == 'yes' ]]; then export PG=no; fi"
- "if [[ $PG == 'yes' ]]; then pip install psycopg2 --use-mirrors; fi"
#Installing mysql-python does not work under Python 3
- "export MSQL=$PG"
- "if [[ $PY3 == 'yes' ]]; then export MSQL=no; fi"
- "if [[ $MSQL == 'yes' ]]; then pip install mysql-python --use-mirrors; fi"
install:
- "/usr/bin/yes | python setup.py install"
before_script:
- cd Tests
script:
- python run_tests.py --offline
#The email defaults are too talkative while we're getting Travis working nicely.
notifications:
email: false