Skip to content

Commit

Permalink
use tox-travis for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
perrette committed Oct 9, 2018
1 parent 7e98453 commit 3efac8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
30 changes: 6 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
sudo: false
language: python
sudo : false
python:
- "2.7"
- "3.5"
install: pip install tox-travis
script: tox
addons:
apt:
packages:
Expand All @@ -8,28 +13,5 @@ addons:
- libnetcdf-dev
- python-numpy
- python-matplotlib
python:
- "2.7"
notifications:
email: false
before_install:
- pip install pip --upgrade
- pip install netcdf4
- pip install scipy
# - pip install pandas # optional requirement
# install cartopy
# - pip install cython scipy Pillow
# - pip install cartopy
# test coverage
- pip install pytest pytest-cov
- pip install coveralls
#optional dependencies
# - pip install pandas # to-pandas
# cartopy projections ?
# iris?
install:
- python setup.py install

script: py.test --cov dimarray.core --cov dimarray.dataset --cov dimarray.io.nc dimarray tests

after-success: coveralls
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[pytest]
addopts = --doctest-modules --doctest-glob='*rst'
doctest_optionflags= NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL
doctest_optionflags= NORMALIZE_WHITESPACE

0 comments on commit 3efac8d

Please sign in to comment.