-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
39 lines (35 loc) · 1.32 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
language: python
matrix:
include:
- python: 2.7
- python: 3.3
- python: 3.4
- python: 3.5
# solution based on https://gist.github.com/dan-blanchard/7045057
# setup anaconda to install scipy and numpy easily and quickly
# Update TC: Nov5 somehow miniconda is now stored in miniconda2 directory
# so needed to update the PATH env variable
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda2/bin:$PATH
- conda update --yes conda
# are not specific to using mini
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# This help testing code with pylab
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION atlas numpy scipy matplotlib nose pandas coverage statsmodels scikit-learn
# coverage packages are elsewhere
#- conda install --yes -c python-coveralls nose-cov
- pip install nose easydev --upgrade
- pip install coveralls
# # command to run tests, e.g. python setup.py test
script:
- python setup.py nosetests --with-coverage --cover-package gdsctools
after_success:
coveralls