Skip to content

Commit c6f1646

Browse files
committed
tox / travis / coverage support
1 parent 18e2bfb commit c6f1646

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
branch = True

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: python
2+
python: 2.7
3+
env:
4+
- TOX_ENV=py34
5+
- TOX_ENV=py33
6+
- TOX_ENV=py32
7+
- TOX_ENV=py27
8+
- TOX_ENV=py26
9+
install:
10+
- pip install tox
11+
- pip install python-coveralls
12+
script:
13+
- tox -e $TOX_ENV
14+
after_success:
15+
coveralls

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# content of: tox.ini, put in same dir as setup.py
2+
[tox]
3+
envlist = py26,py27,py32,py33
4+
[testenv]
5+
deps=pytest
6+
pytest-cov
7+
commands=coverage run --source=pytest_ordering.py -m py.test tests
8+
coverage report

0 commit comments

Comments
 (0)