-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
44 lines (35 loc) · 1.1 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
language: python
matrix:
include:
- python: 2.7
env:
- COVERAGE=false
- python: 3.4
env:
- COVERAGE=false
- python: 3.5
env:
- COVERAGE=false
- python: 3.5
env:
- COVERAGE=true
before_install:
# Here we just install Miniconda, which you shouldn't have to change.
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda update --yes conda
install:
# We just set up a conda environment with the right Python version. This
# should not need changing.
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
- conda install --yes numpy nose matplotlib coverage docopt requests pyyaml
- if [ ${COVERAGE} = true ]; then conda install scipy --yes; fi
- pip install coveralls
- pip install .
script:
- python check_probscale.py --with-coverage --cover-package=probscale --verbose
after_success:
- if [ ${COVERAGE} = true ]; then coveralls; fi