forked from hroest/srmcollider
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
42 lines (36 loc) · 1.08 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
sudo: false
dist: trusty
language: python
python:
- "2.7"
# - "3.5"
cache:
- apt
addons:
apt:
packages:
- libcgal-dev
- libboost-python-dev
- libboost-filesystem-dev
- libboost-test-dev
- libboost-system-dev
- python-dev
- python-setuptools
- python-biopython
- python-matplotlib
- python-numpy
- python-scipy
- python-matplotlib
install:
# make sure we have the newest setuptools
- pip install -U setuptools
- pip install mysqlclient
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then pip install pysqlite; fi
- "cd code/test && python sqltest_tables_setup.py sqlite && cd ../.."
- travis_retry cd code && python setup.py develop && python setup.py install
script:
# Disable the rpy2 tests for Python 3.x
# Disable the Cython tests for Python 3.x as they only work under 2.x
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then nosetests -a '!mysql' -w test/; fi
## - if [[ $TRAVIS_PYTHON_VERSION == 3.5* ]]; then nosetests -a '!mysql' -w test/; fi
cache: pip