Skip to content

Commit

Permalink
[#2312] Setup Coveralls to run in Vagrant as well
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed Jul 27, 2016
1 parent 091e022 commit 4e62af6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
source = akvo
omit =
akvo/rsr/migrations/*
akvo/codelists/migrations/*
akvo/codelists/store/*

[report]
exclude_lines =
def __unicode__
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ data/*
!data/simple-load.sh

# Dev environment
.coverage
.vagrant
Vagrantfile
dev-env
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ before_install:

install:
- pip install -r scripts/deployment/pip/requirements/2_rsr.txt
- pip install coveralls

before_script:
- psql -c 'CREATE DATABASE travis_test;' -U postgres
Expand All @@ -27,7 +26,8 @@ before_script:

script:
- python manage.py collectstatic --noinput
- coverage run --source=akvo --omit="akvo/rsr/migrations/*,akvo/codelists/migrations/*" manage.py test akvo.rsr.tests
- coverage run manage.py test akvo
- coverage report -m

after_success:
- coveralls
Expand Down
3 changes: 2 additions & 1 deletion scripts/deployment/pip/requirements/2_rsr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@ django-nested-inline==0.3.6
# Task scheduling
django-crontab==0.6.0

# Testing libraries
# Testing and code coverage libraries
coveralls
xmlunittest==0.3.2

0 comments on commit 4e62af6

Please sign in to comment.