Skip to content

Commit

Permalink
Update CI (#60)
Browse files Browse the repository at this point in the history
* add python 3.7 to build matrix

* update miniconda

* try skip coverage for allowed failure builds

* don't send allowed failure job reports to coveralls

* last commit didn't work
  • Loading branch information
benbovy committed Sep 24, 2019
1 parent 2715c49 commit e45d587
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ matrix:
env: CONDA_ENV=py35
- python: 3.6
env: CONDA_ENV=py36
- python: 3.7
env: CONDA_ENV=py37
- python: 3.6
env: CONDA_ENV=py36-xarray-dev
- python: 3.6
Expand All @@ -29,9 +31,9 @@ matrix:

before_install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-3.16.0-Linux-x86_64.sh -O miniconda.sh;
wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-3.16.0-Linux-x86_64.sh -O miniconda.sh;
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
Expand All @@ -56,8 +58,10 @@ script:
conda install -c conda-forge sphinx_rtd_theme;
cd doc;
sphinx-build -n -j auto -b html -d _build/doctrees . _build/html;
elif [[ "$CONDA_ENV" == *"dev" ]]; then
pytest xsimlab --verbose;
else
py.test xsimlab --cov=xsimlab --cov-report term-missing --verbose;
pytest xsimlab --cov=xsimlab --cov-report term-missing --verbose;
fi

after_success:
Expand Down
15 changes: 15 additions & 0 deletions ci/requirements-py37.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: test_env_py37
channels:
- conda-forge
dependencies:
- attrs>=18.1.0
- python=3.7
- pytest
- numpy
- xarray
- graphviz
- python-graphviz
- ipython
- pip:
- coveralls
- pytest-cov

0 comments on commit e45d587

Please sign in to comment.