Skip to content

Commit b8b8dd4

Browse files
committed
Add coverage
1 parent a1ee461 commit b8b8dd4

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
source = ./libcomxml

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
language: python
22
python:
3-
- "2.6"
43
- "2.7"
54
install:
65
- "pip install ."
7-
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install unittest2; fi
6+
- "pip install coveralls"
87
script:
9-
- py.test tests/*.py
10-
notifications:
11-
irc: "irc.freenode.org#gisce-commits"
8+
- coverage run setup.py test
9+
after_success:
10+
- coveralls
11+
- coverage report

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
packages=find_packages(),
1111
install_requires=['lxml'],
1212
license='None',
13-
description='This library permits XML generation from Python objects'
13+
description='This library permits XML generation from Python objects',
14+
test_suite='tests'
1415
)

0 commit comments

Comments
 (0)