Skip to content

Commit

Permalink
setup travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
benbovy committed Jun 21, 2017
1 parent a43ce37 commit 657d8a2
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .travis.yml
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
9 changes: 9 additions & 0 deletions ci/requirements-py34.yml
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
9 changes: 9 additions & 0 deletions ci/requirements-py35.yml
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
9 changes: 9 additions & 0 deletions ci/requirements-py36.yml
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

0 comments on commit 657d8a2

Please sign in to comment.