forked from biopython/biopython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
80 lines (72 loc) · 2.45 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#Special configuration file to run tests on Travis-CI via GitHub notifications
#See http://travis-ci.org/ for details
#
#The tests are run via the coverage script, and if the tests pass the coverage
#information is pushed to http://codecov.io/
#
#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"
- "3.5"
- "pypy"
- "pypy3"
sudo: false
addons:
apt:
packages:
- bwa
- clustalo
- clustalw
- emboss
- mafft
- muscle
- probcons
- samtools
- wise
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 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; 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; fi"
#Lib unittest2 is needed for some assertRaises tests under Python 2.6
- "if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi"
#Used to record test coverage information:
- pip install coverage
install:
#The yes is in case we get our prompt about missing NumPy
- "/usr/bin/yes | python setup.py install"
before_script:
- cd Tests
script:
#Using just coverage should match up to the current Python version:
- coverage run --source=Bio,BioSQL run_tests.py --offline
after_success:
#See https://codecov.io/ and https://github.com/codecov/example-python
- pip install codecov
- codecov
#The email defaults are too talkative
notifications:
email: false