# HG changeset patch # User Marcin Kuzminski # Date 2016-12-12 21:02:46 # Node ID f0c3b7be0df03bdf5eb026d5d099d88e9de57717 # Parent 393027037eac4fca102a9276e504a1f2622e47cf makefile: added standard makefile diff --git a/Makefile b/Makefile new file mode 100644 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ + +.PHONY: clean test test-clean test-only + + +clean: + make test-clean + find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' \) -exec rm '{}' ';' + +test: + make test-clean + make test-only + +test-clean: + rm -rf coverage.xml htmlcov junit.xml pylint.log result + find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';' + +test-only: + PYTHONHASHSEED=random py.test -vv -r xw --cov=vcsserver --cov-report=term-missing --cov-report=html vcsserver