diff --git a/.travis.yml b/.travis.yml index cf96fce..9aa041b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,8 @@ before_script: - psql -c 'create database test_db;' -U postgres - pipenv run python manage.py collectstatic script: -- pipenv run python manage.py test +- pipenv run coverage run --source=. --omit manage.py,"*/admin.py","*/migrations/*" manage.py test -v 2 +- coveralls services: - postgresql env: diff --git a/Pipfile b/Pipfile index a82d216..f53cd83 100644 --- a/Pipfile +++ b/Pipfile @@ -19,4 +19,5 @@ pytest = "*" "flake8" = "*" "pytest-flake8" = "*" coverage = "*" -coreapi = "*" \ No newline at end of file +coreapi = "*" +coveralls = "*" \ No newline at end of file diff --git a/Pipfile.lock b/Pipfile.lock index c0a63a2..38774a3 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "5da2842d8810ecc8533aabd2505bc09a1efcc91edc50acf8e6415e52c67c9cc0" + "sha256": "799b593a47da357431de8692c0a6159cf895b3308975d2a461f4ba2d5aff72ab" }, "host-environment-markers": { "implementation_name": "cpython", @@ -224,6 +224,19 @@ ], "version": "==4.4.1" }, + "coveralls": { + "hashes": [ + "sha256:84dd8c88c5754e8db70a682f537e2781366064aa3cdd6b24c2dcecbd3181187c", + "sha256:510682001517bcca1def9f6252df6ce730fcb9831c62d9fff7c7d55b6fdabdf3" + ], + "version": "==1.2.0" + }, + "docopt": { + "hashes": [ + "sha256:49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491" + ], + "version": "==0.6.2" + }, "flake8": { "hashes": [ "sha256:f1a9d8886a9cbefb52485f4f4c770832c7fb569c084a9a314fb1eaa37c0c2c86", diff --git a/README.md b/README.md index 70dce99..865773c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Build status](https://travis-ci.org/volCommunity/vol-django.svg?branch=master)](https://travis-ci.org/volCommunity/vol-django) +[![Coverage Status](https://coveralls.io/repos/github/volCommunity/vol-django/badge.svg?branch=master)](https://coveralls.io/github/volCommunity/vol-django?branch=master) # Vol::Django