forked from International-BMP-Database/pybmpdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (33 loc) · 1.06 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
language: python
matrix:
include:
- python: 3.7
language: python
sudo: required
dist: xenial
env:
- COVERAGE=false
- ARGS=""
- python: 3.6
env:
- COVERAGE=true
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 conda
install:
- conda create --name=test python=$TRAVIS_PYTHON_VERSION nomkl --channel=conda-forge --yes
- source activate test
- conda install numpy scipy pandas matplotlib statsmodels seaborn mpl-probscale bulwark pytest pytest-cov pytest-mpl pytest-pep8 coverage docopt requests pyyaml tqdm --channel=conda-forge --yes
- pip install git+https://github.com/Geosyntec/wqio.git
- pip install codecov
- pip install . --no-deps
script:
- coverage run --source pybmpdb check_pybmpdb.py --verbose --strict
after_success:
- if [ ${COVERAGE} = true ]; then
coverage report -m;
codecov;
fi