Skip to content

Commit

Permalink
run tests via tox
Browse files Browse the repository at this point in the history
  • Loading branch information
ingwinlu committed Aug 2, 2015
1 parent 33e1e21 commit a274297
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
13 changes: 5 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ sudo: false
language: python
python:
- "2.7"
- "3.3"
- "3.4"
env:
- TOX_ENV=py27
- TOX_ENV=py34
install:
- pip install .
- pip install nose-cov
script: nosetests -sv --with-coverage --cover-package=twitch
after_success:
- pip install coveralls
- coveralls
- pip install tox
script: tox -e $TOX_ENV
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@
author_email='derwinlu+python-twitch@gmail.com',
url='https://pypi.python.org/pypi/python-twitch',
)

19 changes: 19 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[tox]
envlist = py{27,34}

[testenv]
basepython =
py27: python2.7
py33: python3.3
py34: python3.4
passenv = *
usedevelop=True
deps =
nose
nose-cov
coveralls

commands =
{envpython} --version
nosetests -sv --with-coverage
coveralls

0 comments on commit a274297

Please sign in to comment.