123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Makefile for testing
  2. TESTPYPI = https://testpypi.python.org/pypi
  3. PYPI = https://pypi.python.org/pypi
  4. .PHONY: dogfood 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. test: cov reg
  10. test3: cov3 reg3
  11. cov:
  12. coverage run tests/test_cdiff.py
  13. coverage report --show-missing
  14. cov3:
  15. python3 `which coverage` run tests/test_cdiff.py
  16. python3 `which coverage` report --show-missing
  17. html:
  18. coverage html
  19. python -m webbrowser -n "file://$(shell pwd)/htmlcov/index.html"
  20. reg:
  21. tests/regression.sh
  22. reg3:
  23. PYTHON=python3 tests/regression.sh
  24. profile:
  25. tests/profile.sh profile.tmp
  26. profile3:
  27. tests/profile.sh profile3.tmp
  28. clean:
  29. rm -f MANIFEST profile*.tmp* .coverage
  30. rm -rf build/ cdiff.egg-info/ dist/ __pycache__/
  31. build:
  32. ./setup.py build sdist
  33. dist-test:
  34. ./setup.py build sdist register upload -r $(TESTPYPI)
  35. dist:
  36. ./setup.py build sdist register upload -r $(PYPI)
  37. # vim:set noet ts=8 sw=8: