1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#! /usr/bin/make -f
NOSETESTS = nosetests test -v --stop
nosetests_cmd = $(NOSETESTS) ${NOSETESTS_OPTS}
.PHONY: tests
tests:
$(nosetests_cmd)
# run tests not requiring network
.PHONY: quicktests
quicktests: NOSETESTS_OPTS += --processes=4 --attr='!network'
quicktests:
$(nosetests_cmd)
coverage: NOSETESTS_OPTS += --with-coverage --cover-package=reportbug
coverage:
$(nosetests_cmd)
coverhtml: NOSETESTS_OPTS += --cover-html
coverhtml: coverage
codechecks: pep8 pyflakes pylint
pep8:
pep8 --verbose --repeat --show-source --filename=*.py,reportbug,querybts . --statistics
pyflakes:
pyflakes . bin/*
pylint:
pylint --output-format=colorized bin/* reportbug/ checks/* test/ setup.py
|