Skip to content

Commit

Permalink
Travis build badge. Coveralls setup and badge.
Browse files Browse the repository at this point in the history
  • Loading branch information
vibragiel committed Sep 5, 2013
1 parent f9a75b7 commit 8806576
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@ language: python
env:
- TOXENV=py27
- TOXENV=py33
- TOXENV=flake8
- TOXENV=cov
install:
- pip install -r requirements.txt
- pip install --quiet --use-mirrors tox
script:
- tox
after_script:
- if [ $TOXENV == "cov" ]; then
pip install --quiet --use-mirrors coveralls;
coveralls;
fi
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# A Pythonic wrapper for the Nobel Prize API
[![Build Status](https://travis-ci.org/vibragiel/nobel.png)](https://travis-ci.org/vibragiel/nobel)[![Coverage Status](https://coveralls.io/repos/vibragiel/nobel/badge.png)](https://coveralls.io/r/vibragiel/nobel)

A simple Python wrapper for the [Nobel Prize API](http://www.nobelprize.org/nobel_organizations/nobelmedia/nobelprize_org/developer/).

Expand Down
13 changes: 11 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = py27,py33,flake8
envlist = py27,py33,flake8,cov

[testenv]
commands = {envpython} setup.py test
Expand All @@ -18,4 +18,13 @@ deps=
requests
flake8
commands=
flake8 nobel
flake8 nobel

[testenv:cov]
basepython=python2.7
deps =
coverage
requests
commands =
coverage run --source nobel setup.py test
coverage report

0 comments on commit 8806576

Please sign in to comment.