Makefile 876B

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