Skip to content

Commit

Permalink
configure dual testing
Browse files Browse the repository at this point in the history
  • Loading branch information
weikang9009 committed Aug 7, 2018
1 parent 739aa6a commit 893f223
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
30 changes: 24 additions & 6 deletions .travis.yml 100755 → 100644
@@ -1,11 +1,22 @@
language: python
sudo: false
branches:
only:
- master
only:
- master
python:
- "3.5"
- "3.6"
- 3.5
- 3.6

env:
- PYSAL_PYPI=true MPLBACKEND='pdf'
- PYSAL_PYPI=false MPLBACKEND='pdf'

matrix:
allow_failures: #allow travis tests to fail if using the github version of libpysal
- python: 3.5
env: PYSAL_PYPI=false MPLBACKEND='pdf'
- python: 3.6
env: PYSAL_PYPI=false MPLBACKEND='pdf'

before_install:
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
Expand All @@ -19,10 +30,17 @@ before_install:

install:
- conda install --yes pip
- conda install --yes nose
- pip install -r requirements.txt
- pip install -r requirements_tests.txt
# configure dual tests (for dependency libpysal)
- if "$PYSAL_PYPI"; then
echo 'testing pypi libpysal' && pip install libpysal;
else echo 'testing git libpysal'; git clone https://github.com/pysal/libpysal.git; cd libpysal; pip install .; cd ../;
fi;

script:
- python setup.py sdist >/dev/null
- python setup.py install
- nosetests --verbose --with-coverage --cover-package=pointpats;

notifications:
Expand All @@ -32,7 +50,7 @@ notifications:
- levi.john.wolf@gmail.com
- weikang9009@gmail.com
- shaohutiger@gmail.com
on_change: always
on_success: change
on_failure: always

after_success:
Expand Down
3 changes: 1 addition & 2 deletions requirements_dev.txt → requirements_tests.txt
Expand Up @@ -2,6 +2,5 @@ nose
nose-progressive
nose-exclude
coverage
sphinx>=1.4.3
sphinxcontrib-napoleon
coveralls
matplotlib

0 comments on commit 893f223

Please sign in to comment.