Makefile
29 lines
| 851 B
| text/x-makefile
|
MakefileLexer
r132 | ||||
r832 | .PHONY: clean test test-clean test-only generate-pkgs pip-packages | |||
r132 | ||||
r832 | # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py | |||
OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES} | ||||
r132 | ||||
clean: | ||||
make test-clean | ||||
r642 | find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';' | |||
r132 | ||||
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 '{}' ';' | ||||
r970 | find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';' | |||
r132 | ||||
test-only: | ||||
r642 | PYTHONHASHSEED=random \ | |||
py.test -x -vv -r xw -p no:sugar \ | ||||
--cov=vcsserver --cov-report=term-missing --cov-report=html vcsserver | ||||
r641 | ||||
generate-pkgs: | ||||
r970 | nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses --no-binary :all:" | |||
r832 | ||||
pip-packages: | ||||
python ${OUTDATED_PACKAGES} | ||||