forked from ukhsa-collaboration/pygom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (37 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
# specify the language and which version
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
# setup miniconda
before_install:
- sudo apt-get update
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- chmod +x miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- ./miniconda.sh -b
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update conda
- conda info -a
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# command to install dependencies
install:
# standard stuff you need for scientific computing
- conda create -n pygom python=$TRAVIS_PYTHON_VERSION atlas dask matplotlib nose pandas numpy scipy sympy
- source activate pygom
- conda install -c http://conda.anaconda.org/bioconda python-libsbml graphviz
- conda install -c http://conda.anaconda.org/anaconda python-dateutil
- python setup.py install
- pip install -r requirements.txt
- python setup.py install
# command to run tests
script: python setup.py test