~stefanor/pylibravatar/no-server

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Francois Marier
  • Date: 2011-12-05 02:59:27 UTC
  • Revision ID: fmarier@gmail.com-20111205025927-3c7nlhi2habigpna
Add a coverage target to the Makefile which runs python-coverage

http://nedbatchelder.com/code/coverage/

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
        nosetests tests/*.py
3
3
 
4
4
clean:
5
 
        rm -rf dist/ MANIFEST
 
5
        python-coverage -e
 
6
        rm -rf dist/ MANIFEST htmlcov/
 
7
 
 
8
coverage:
 
9
        python-coverage run /usr/bin/nosetests tests/*.py 2> /dev/null
 
10
        @python-coverage report -m | grep "^libravatar"
 
11
        @python-coverage html
6
12
 
7
13
dist: test
8
14
        python setup.py sdist