1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 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 --include cdiff.py --show-missing
  14. cov3:
  15. python3 `which coverage` run tests/test_cdiff.py
  16. python3 `which coverage` report --include cdiff.py --show-missing
  17. reg:
  18. tests/regression.sh
  19. reg3:
  20. PYTHON=python3 tests/regression.sh
  21. profile:
  22. tests/profile.sh profile.tmp
  23. profile3:
  24. tests/profile.sh profile3.tmp
  25. clean:
  26. rm -f MANIFEST profile*.tmp* .coverage
  27. rm -rf build/ cdiff.egg-info/ dist/ __pycache__/
  28. build:
  29. ./setup.py build sdist
  30. dist-test:
  31. ./setup.py build sdist register upload -r $(TESTPYPI)
  32. dist:
  33. ./setup.py build sdist register upload -r $(PYPI)
  34. # vim:set noet ts=8 sw=8: