forked from opencobra/cobrapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (42 loc) · 1.15 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
42
43
language: python
sudo: false
cache:
directories:
- $HOME/.cache/pip
python:
- "2.7"
- "3.4"
- "3.5"
addons:
apt:
packages:
- gfortran
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- libgmp-dev
- libglpk-dev
- libmpfr-dev
# command to install dependencies
env:
- PIP_CACHE_DIR=$HOME/.cache/pip
before_install:
- pip install pip --upgrade
# These get cached
- pip install numpy scipy python-libsbml cython coveralls jsonschema six matplotlib pandas
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then pip install lxml glpk pep8 palettable; fi
# Download esolver and add it to the path
- wget https://opencobra.github.io/pypi_cobrapy_travis/esolver.gz
- gzip -d esolver.gz; chmod +x esolver; export PATH=$PATH:$PWD
- mkdir -p $HOME/.config/matplotlib
- "echo 'backend: Agg' >> $HOME/.config/matplotlib/matplotlibrc"
install:
- python setup.py develop
# # command to run tests
script:
- coverage run --source=cobra setup.py test
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then
pep8 cobra/core cobra/design cobra/manipulation cobra/test cobra/version.py;
fi
after_success:
- coveralls