Skip to content
This repository has been archived by the owner on Nov 8, 2018. It is now read-only.

added coveralls support #370

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[report]
omit =
*/migrations/*
*/tests/*
manage.py
infohub/systers_portal/*
*/admin.py
*/site-packages/*

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ submit/
*.DS_Store
*/migrations/
credentials.json
.pytest_cache
.coverage
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ python:
- "3.6"
install:
- "pip3 install -r requirements.txt"
- "pip3 install coveralls"
before_script:
- psql -c "create role myuser with createrole createdb login password 'mypassword';" -U postgres
- psql -c "create database webapp;" -U postgres
Expand All @@ -15,4 +16,6 @@ script:
- python3 manage.py migrate --fake-initial
- python3 manage.py makemigrations infohub malaria_web pcsa pcsa_GHN pcsa_safety_tools
- python3 manage.py migrate --fake-initial
# - python3 manage.py test --settings=infohub.settings
- coverage run manage.py test --settings=infohub.settings
after_success:
coveralls --rcfile=.coveragerc