You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
711 B

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