forked from ecmwf/cfgrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (41 loc) · 1.37 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
# Based on http://conda.pydata.org/docs/travis.html
language: minimal
sudo: false # use container based build
matrix:
fast_finish: true
include:
- env: ENV=py36-qc
- env: ENV=py36-without-xarray
- env: ENV=py36-old
- env: ENV=py27
- env: ENV=docs
- env: ENV=py37
# - env: ENV=py35
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda3-3.16.0-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
- conda update -q conda
- conda info -a
install:
- conda env create -n test_env --file ci/requirements-$ENV.yml;
- source activate test_env
- conda list
- pip install --no-deps -e .
script:
- which python
- python --version
- python -c "import cfgrib"
- if [[ "$ENV" == "docs" ]]; then
sphinx-build -W -b html docs build/sphinx/html;
elif [[ "$ENV" == *"-qc" ]]; then
pytest -v --flakes --doctest-glob="*.rst" --cov=cfgrib --cov cf2cdm --cov-report term-missing --pep8 --mccabe $EXTRA_FLAGS;
elif [[ "$ENV" == *"-without-xarray" ]]; then
pytest -v --flakes --cov=cfgrib --cov-report term-missing $EXTRA_FLAGS cfgrib tests;
else
pytest -v --flakes --cov=cfgrib --cov cf2cdm --cov-report term-missing $EXTRA_FLAGS;
fi
after_success:
- coveralls