We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea01d1c commit 409f9b2Copy full SHA for 409f9b2
3 files changed
.coveragerc
@@ -0,0 +1,2 @@
1
+[run]
2
+omit = tests/*
.travis.yml
@@ -1,12 +1,5 @@
language: python
python:
3
- "2.7"
4
-# command to install dependencies
5
-install:
6
- - pip install .
7
- - pip install coveralls
8
-# command to run tests
9
-script:
10
- coverage run --omit=*/tests/* --source=simplepeg setup.py test
11
-after_success:
12
- coveralls
+install: pip install tox-travis
+script: tox
tox.ini
@@ -1,7 +1,11 @@
[tox]
envlist=py27
+
[testenv]
changedir=tests
-deps=pytest
-commands=py.test --basetemp={envtmpdir}
+deps=
+ pytest
+ pytest-cov
+ coveralls
+commands=py.test --basetemp={envtmpdir} --cov-config .coveragerc --cov=simplepeg
setenv = PYTHONPATH = {toxinidir}
0 commit comments