Makefile 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Makefile for testing
  2. TESTPYPI = http://testpypi.python.org/pypi
  3. PYPI = http://pypi.python.org/pypi
  4. .PHONY: dogfood doc-check clean build dist-test dist \
  5. test test3 cov cov3 html reg reg3 profile profile3
  6. dogfood:
  7. ./cdiff.py
  8. git diff | ./cdiff.py -s
  9. doc-check:
  10. ./setup.py --long-description | rst2html.py --strict > output.html
  11. python -m webbrowser -n "file://$(shell pwd)/output.html"
  12. sleep 1
  13. rm -f output.html
  14. test: cov reg
  15. test3: cov3 reg3
  16. cov:
  17. coverage run tests/test_cdiff.py
  18. coverage report --show-missing
  19. cov3:
  20. python3 `which coverage` run tests/test_cdiff.py
  21. python3 `which coverage` report --show-missing
  22. html:
  23. coverage html
  24. python -m webbrowser -n "file://$(shell pwd)/htmlcov/index.html"
  25. reg:
  26. tests/regression.sh
  27. reg3:
  28. PYTHON=python3 tests/regression.sh
  29. profile:
  30. tests/profile.sh profile.tmp
  31. profile3:
  32. tests/profile.sh profile3.tmp
  33. clean:
  34. rm -f MANIFEST profile*.tmp* .coverage
  35. rm -rf build/ cdiff.egg-info/ dist/ __pycache__/
  36. build:
  37. ./setup.py build sdist
  38. dist-test:
  39. ./setup.py build sdist register upload -r $(TESTPYPI)
  40. dist:
  41. ./setup.py build sdist register upload -r $(PYPI)
  42. # vim:set noet ts=8 sw=8: