forked from Geosyntec/cloudside
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (31 loc) · 1.01 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
language: python
matrix:
fast_finish: true
include:
- python: 3.6
env:
- COVERAGE=true
- ARGS="--verbose --strict"
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 config --set always_yes true
- conda config --add channels conda-forge
- conda update conda
- conda install nomkl
install:
- conda create --channel=conda-forge --name testenv --yes python=$TRAVIS_PYTHON_VERSION numpy matplotlib pandas
- source activate testenv
- conda install --channel=conda-forge --yes pytest coverage pytest-mpl pytest-cov pytest-pep8
- pip install git+https://github.com/python-metar/python-metar.git
- pip install coveralls
- pip install .
script:
- coverage run --source cloudside check_cloudside.py ${ARGS}
after_success:
- if [ ${COVERAGE} = true ]; then
coverage report -m;
coveralls;
fi