Skip to content

Commit

Permalink
use tox and pytest runner, update test envs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Apr 10, 2016
1 parent 32ee389 commit 5a952ce
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ build
.tox
docs/_build
*.egg-info
.idea/
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
sudo: false
language: python
python:
- "2.6"
- "2.7"
- "pypy"
- "3.3"

- "3.4"
- "3.5"
install:
- "python setup.py install"

script: make test

- "pip install tox"
script:
- "tox -e py"
notifications:
email: false
irc:
Expand Down
1 change: 1 addition & 0 deletions setup.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
Expand Down
1 change: 1 addition & 0 deletions tests.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
import time
import pickle
import hashlib
Expand Down
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[tox]
envlist = py26, py27, pypy, py33
envlist = py26,py27,pypy,py33,py34,py35

[testenv]
commands = python tests.py
commands = py.test tests.py {posargs}

deps =
pytest

0 comments on commit 5a952ce

Please sign in to comment.