-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
66 lines (59 loc) · 1.7 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: python
sudo: false
cache: pip
matrix:
include:
# - python: 2.7 # hymo doesn't yet support py27
# env:
# - COVERAGE=false
# - TESTERS="pytest"
# - ARGS="--verbose"
- python: 3.5
env:
- NXVERSION="networkx=1.11"
- COVERAGE=false
- TESTERS="pytest"
- ARGS="--verbose"
- python: 3.6
env:
- NXVERSION="networkx=1.11"
- COVERAGE=false
- TESTERS="pytest"
- ARGS="--verbose"
- python: 3.5
env:
- NXVERSION="networkx"
- COVERAGE=true
- TESTERS="pytest coverage"
- ARGS="--verbose"
- python: 3.6
env:
- NXVERSION="networkx"
- COVERAGE=false
- TESTERS="pytest"
- ARGS="--verbose"
# Install, update, and setup Miniconda
# This should not need changing.
before_install:
- 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 --quiet conda
# We just set up a conda environment with the right Python version.
# This should not need changing.
install:
- conda create --yes --quiet -n test python=$TRAVIS_PYTHON_VERSION nomkl numpy pandas
- source activate test
- conda install --yes --quiet --channel conda-forge ${TESTERS} ${NXVERSION}
- pip install codecov pint==0.8.1
- pip install git+https://github.com/lucashtnguyen/hymo.git
- pip install .
script:
- python check_swmmnetwork.py ${ARGS}
after_success:
- if [ ${COVERAGE} = true ]; then
coverage run --source swmmnetwork check_swmmnetwork.py;
coverage report -m;
codecov;
fi