Skip to content

Commit

Permalink
Travis: use tox for testing
Browse files Browse the repository at this point in the history
* Update the Travis CI testing configuration to use tox.
* Drop testing of Python 2.6, 3.2, 3.3
* Add Python 3.4, 3.5, pypy3
  • Loading branch information
bd808 committed Aug 21, 2016
1 parent 51b9e84 commit 041628d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 15 deletions.
13 changes: 7 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
*.egg-info
*.pyc
.coverage
.venv
build
dist
extras
iptools.egg-info
/.coverage
/.tox/
/.venv/
/build/
/dist/
/extras/
setuptools-*.egg
20 changes: 13 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
- "pypy"
- "pypy3"
sudo: false
matrix:
fast_finish: true

install:
- pip install .
- pip install -r tests/requirements.txt
- pip install wheel tox-travis
- python setup.py install bdist_wheel
- pip install ./dist/iptools-*.whl
script:
- flake8
- nosetests
- tox
- tox --installpkg ./dist/iptools-*.whl

notifications:
email:
- travis-ci+python-iptools@bd808.com
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
[nosetests]
verbosity=2
detailed-errors=1
with-coverage=1
with-doctest=1
cover-package=iptools
cover-html=1
cover-html-dir=docs/_build/cover
cover-branches=1

[flake8]
ignore=F821,E402
count=1
show-pep8=1
show-source=1
statistics=1
exclude=build,dist,docs,*.egg,*.egg-info
exclude=.tox,.venv,build,dist,docs,*.egg,*.egg-info

[wheel]
universal = 1
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[tox]
envlist = py27, py34, py35, pypy, pypy3

[testenv]
deps = -r{toxinidir}/tests/requirements.txt
commands =
flake8
nosetests

0 comments on commit 041628d

Please sign in to comment.