Skip to content

Commit

Permalink
add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
antonagestam committed Jan 8, 2016
1 parent 3502f9c commit 1501317
Show file tree
Hide file tree
Showing 5 changed files with 16 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=access/*
omit=*/tests/*
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ bin
lib
include
*.pyc
.coverage
htmlcov
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ install:
- pip install -q Django==$DJANGO_VERSION
script:
- make lint
- make test
- make test-coverage
after_success:
- make coveralls
env:
- DJANGO_VERSION=1.8.8
- DJANGO_VERSION=1.9.1
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
.PHONY: test lint
.PHONY: test lint test-coverage coveralls

test:
python runtests.py

lint:
flake8 .

test-coverage:
coverage run runtests.py

coveralls:
coveralls
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
factory-boy==2.6.0
flake8==2.5.1
coveralls==1.1

0 comments on commit 1501317

Please sign in to comment.