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 1 commit
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
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[report]
omit =
*/migrations/*
*/tests/*
manage.py
infohub/systers_portal/*
*/admin.py
*/site-packages/*
[html]
directory = reports/htmlcov
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"
- "pip install coveralls"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All other requirements are installed for python3 (line 8 uses pip3), why are you not installing coveralls for python3 ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, I will just update the line with pip3 to make everything uniform. However the command is tantamount to pip3 in a python 3 environment.

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