forked from robclewley/pydstool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (39 loc) · 1.3 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
44
45
46
language: python
matrix:
include:
- python: 3.4
env:
- NUMPY_SPEC=numpy
- SCIPY_SPEC=scipy
- COVERAGE="no"
- python: 3.3
env:
- NUMPY_SPEC=numpy
- SCIPY_SPEC=scipy
- COVERAGE="no"
- python: 2.7
env:
- NUMPY_SPEC=numpy
- SCIPY_SPEC=scipy
- COVERAGE="yes"
before_install:
# Use miniconda. Taken from https://gist.github.com/dan-blanchard/7045057
- 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/miniconda/bin:$PATH
- conda update --yes conda
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION atlas $NUMPY_SPEC $SCIPY_SPEC pytest six mock
- if [ "${COVERAGE}" == "yes" ]; then conda install --yes -c dan_blanchard coverage python-coveralls; fi
script:
- if [ "${COVERAGE}" == "yes" ]; then sed -i'' -e 's/--boxed//g' pytest.ini && coverage run --source=PyDSTool setup.py test -q; else python setup.py test; fi
after_success:
- if [ "${COVERAGE}" == "yes" ]; then coveralls --config_file .coveragerc; fi
cache: apt
sudo: false
addons:
apt:
packages:
- gfortran
- swig