Skip to content

Commit d6b3b69

Browse files
committed
Add code coverage.
1 parent 7cfe771 commit d6b3b69

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@ matrix:
2929
env: DJANGO_VERSION=1.11
3030

3131
install:
32+
- pip install coveralls
3233
- pip install -r requirements.txt
3334
- pip install -q Django==$DJANGO_VERSION
3435
- pip install --upgrade setuptools wheel
3536
- mysql -e 'create database django_prometheus_1;'
3637
script:
3738
- if [[ $TRAVIS_PYTHON_VERSION == "3.7" ]]; then black --check django_prometheus/; fi
38-
- python setup.py test
39+
- coverage run --source=django_prometheus setup.py test
3940
- python setup.py sdist bdist_wheel
4041
- cd django_prometheus/tests/end2end && PYTHONPATH=../../.. python manage.py test
42+
after_success:
43+
- coveralls

0 commit comments

Comments
 (0)