-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# see http://conda.pydata.org/docs/travis.html | ||
|
||
language: python | ||
sudo: false # use container based build | ||
notifications: | ||
email: false | ||
|
||
matrix: | ||
fast_finish: True | ||
include: | ||
- python: 3.4 | ||
env: CONDA_ENV=py34 | ||
- python: 3.5 | ||
env: CONDA_ENV=py35 | ||
- python: 3.6 | ||
env: CONDA_ENV=py36 | ||
|
||
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; | ||
else | ||
wget http://repo.continuum.io/miniconda/Miniconda3-3.16.0-Linux-x86_64.sh -O miniconda.sh; | ||
fi | ||
- 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 --file ci/requirements-$CONDA_ENV.yml | ||
- source activate test_env | ||
- python setup.py install | ||
|
||
script: | ||
- py.test xarray-simlab --cov=spyfit --cov-report term-missing | ||
|
||
after_success: | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: test_env | ||
dependencies: | ||
- python=3.4 | ||
- pytest | ||
- numpy | ||
- xarray | ||
- pip: | ||
- coveralls | ||
- pytest-cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: test_env | ||
dependencies: | ||
- python=3.5 | ||
- pytest | ||
- numpy | ||
- xarray | ||
- pip: | ||
- coveralls | ||
- pytest-cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: test_env | ||
dependencies: | ||
- python=3.6 | ||
- pytest | ||
- numpy | ||
- xarray | ||
- pip: | ||
- coveralls | ||
- pytest-cov |