Skip to content

Commit

Permalink
add coveralls as code coverage and badge to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ira committed Oct 12, 2015
1 parent 9ff9dcf commit 2d80fdf
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[report]
omit = .tox/*
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
language: python
install:
- pip install coveralls
- pip install tox
script:
- tox

after_success:
- coveralls
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Badger-api [![Build Status](https://travis-ci.org/2gis/badger-api.svg?branch=master)](https://travis-ci.org/2gis/badger-api)
# Badger-api [![Build Status](https://travis-ci.org/2gis/badger-api.svg?branch=master)](https://travis-ci.org/2gis/badger-api) [![Coverage Status](https://coveralls.io/repos/2gis/badger-api/badge.svg?branch=master&service=github)](https://coveralls.io/github/2gis/badger-api?branch=master)
Badger-api is an open source backend service (REST API) for [Badger] (https://github.com/2gis/badger) (AngularJS web UI).

# Installation
Expand Down
2 changes: 1 addition & 1 deletion README_HEROKU.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Badger-api [![Build Status](https://travis-ci.org/2gis/badger-api.svg?branch=master)](https://travis-ci.org/2gis/badger-api)
# Badger-api [![Build Status](https://travis-ci.org/2gis/badger-api.svg?branch=master)](https://travis-ci.org/2gis/badger-api) [![Coverage Status](https://coveralls.io/repos/2gis/badger-api/badge.svg?branch=master&service=github)](https://coveralls.io/github/2gis/badger-api?branch=master)
Badger-api is an open source backend service (REST API) for [Badger] (https://github.com/2gis/badger) (AngularJS web UI).

# Installation
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ skipsdist = True
envlist = py34

[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
setenv =
CDWS_API_HOSTNAME=localhost
BROKER_URL=sqla+sqlite:///celerydb.sqlite
CDWS_WORKING_DIR=/tmp/cdws
DEBUG=False
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
coveralls

commands =
flake8
coverage erase
coverage run manage.py test --verbosity 2
coverage xml
coverage run --source='.' --rcfile=.coveragerc manage.py test --verbosity 2
coveralls --verbose

[flake8]
show-source = true
Expand Down

0 comments on commit 2d80fdf

Please sign in to comment.