forked from pygridgen/pygridgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
44 lines (39 loc) · 1.06 KB
/
.travis.yml
File metadata and controls
44 lines (39 loc) · 1.06 KB
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
- ARGS=""
- python: 3.4
env:
- COVERAGE=false
- ARGS=""
- python: 3.5
env:
- COVERAGE=false
- ARGS=""
- python: 3.6
env:
- COVERAGE=true
- ARGS="--strict"
before_install:
- sudo apt-get update -yq
- 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
- conda install --yes nomkl
install:
- conda create --yes --channel=conda-forge --name=test python=$TRAVIS_PYTHON_VERSION nomkl gridgen numpy matplotlib pyproj pytest pytest-cov pytest-pep8 coverage docopt requests pyyaml
- source activate test
- pip install coveralls
- pip install -e .
script:
- coverage run --source pygridgen check_pygridgen.py ${ARGS}
after_success:
- if [ ${COVERAGE} = true ]; then
coverage report -m;
coveralls;
fi