Skip to content

Commit

Permalink
Use tox to run tests on multiple versions of python
Browse files Browse the repository at this point in the history
Running tests with tox [1] has some advantages:
- Running tests with multiple versions of python is simple.
- Proper package installation is tested as well. So for example
  the presence of README.rst when setup.py is run can only be
  guaranteed when this file is packaged with pygbif. tox will discover
  issues like this.

[1] https://pypi.python.org/pypi/tox
  • Loading branch information
xrotwang committed May 20, 2016
1 parent 9ee5980 commit a44b99b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
1 change: 0 additions & 1 deletion .coverage

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@

# Build output
/build/

.tox
.coverage
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include *.rst *.md LICENSE
17 changes: 17 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tox]
envlist =
py34,py27

[testenv]
commands =
python setup.py develop
nosetests --with-coverage --cover-package=pygbif
deps =
nose
coverage

[testenv:py34]
basepython = python3.4

[testenv:py27]
basepython = python2.7

0 comments on commit a44b99b

Please sign in to comment.