Skip to content

Commit 409f9b2

Browse files
committed
update ci configs
1 parent ea01d1c commit 409f9b2

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
omit = tests/*

.travis.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
language: python
22
python:
33
- "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
4+
install: pip install tox-travis
5+
script: tox

tox.ini

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
[tox]
22
envlist=py27
3+
34
[testenv]
45
changedir=tests
5-
deps=pytest
6-
commands=py.test --basetemp={envtmpdir}
6+
deps=
7+
pytest
8+
pytest-cov
9+
coveralls
10+
commands=py.test --basetemp={envtmpdir} --cov-config .coveragerc --cov=simplepeg
711
setenv = PYTHONPATH = {toxinidir}

0 commit comments

Comments
 (0)