forked from msproteomicstools/msproteomicstools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 1.4 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
sudo: required
dist: trusty
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
before_install:
- sudo apt-get update
- sudo apt-get install -qq r-base
- git clone https://github.com/hroest/scikit-datasmooth.git
- "cd scikit-datasmooth && python setup.py install && cd .."
install:
# make sure we have the newest setuptools
- pip install -U setuptools
# For Ubuntu 12.04, we have only R 2.x available and thus need an older rpy2
# version (2.2.5). For Ubuntu 14.04, we have R 3.0.x available which works
# with rpy2 2.3.9 (see trusty packages).
# However, for Python 3.4 / 3.5 the older version of rpy2 wont work
# (we thus disable the tests).
- pip install -U Cython
- pip install -U statsmodels
- pip install biopython
- pip install configobj lxml xlwt xlsxwriter pyteomics
- pip install rpy2==2.3.9
- travis_retry python setup.py develop --with_cython && python setup_travis.py develop --with_cython
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 -w test/; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.4* ]]; then nosetests -a '!rpy2,!cython' -w test/; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.5* ]]; then nosetests -a '!rpy2,!cython' -w test/; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.6* ]]; then nosetests -a '!rpy2,!cython' -w test/; fi
cache: pip