forked from LoLab-MSM/pysb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (32 loc) · 1.16 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
language: python
sudo: required
dist: trusty
env:
- PYVER=3.6
- PYVER=3.7
- PYVER=3.8
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda${PYVER:0:1}-latest-Linux-x86_64.sh
-O miniconda.sh
- chmod +x miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda install --yes -c conda-forge python="$PYVER"
numpy scipy matplotlib sympy nose h5py pexpect pandas networkx
pydot codecov mock cython
- if [[ $PYVER != 3.8 ]]; then conda install --yes -c SBMLTeam python-libsbml; else pip install python-libsbml; fi
# libroadrunner is not currently available for Python 3.8
- if [[ $PYVER != 3.8 ]]; then pip install libroadrunner twine; else pip install twine; fi
- mkdir -p ~/.config/matplotlib
- echo "backend:Agg" > ~/.config/matplotlib/matplotlibrc
# Install BioNetGen, Kappa, StochKit and Atomizer
- conda install --yes -c alubbock kappa stochkit bionetgen atomizer
install:
python setup.py build --build-lib=build/lib
before_script:
python setup.py sdist && twine check dist/*
script:
nosetests build/lib/pysb --with-coverage --cover-inclusive
--cover-package=build/lib/pysb -a '!gpu'
after_success:
codecov