Skip to content

Commit

Permalink
Adding coverage config file
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-code committed Nov 26, 2016
1 parent 0666aab commit b748077
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
include = bootcamp/*
omit = *migrations*, *tests*
22 changes: 20 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
language: python
python:
- "2.7"
install: "pip install -r requirements.txt"
- "3.5"
env:
matrix:
- DJANGO="Django<1.9"
- DJANGO="Django<1.10"
- DJANGO="Django<1.11"
branches:
only:
- master
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install "$DJANGO"
- pip install python-coveralls
- pip install coverage
before_script:
- cp .env.example .env
- python manage.py migrate
- python manage.py collectstatic --noinput
# command to run tests
script:
- python manage.py test
- coverage python manage.py test

after_success:
- coveralls
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ Markdown==2.6.6
bleach==1.4.3
psycopg2==2.6.2
whitenoise==3.2
coverage==4.2

0 comments on commit b748077

Please sign in to comment.