##// END OF EJS Templates
makefile: added outdated packages helper
marcink -
r832:55e4a726 default
parent child Browse files
Show More
@@ -1,23 +1,28 b''
1 1
2 .PHONY: clean test test-clean test-only generate-pkgs
2 .PHONY: clean test test-clean test-only generate-pkgs pip-packages
3 3
4 # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py
5 OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES}
4 6
5 7 clean:
6 8 make test-clean
7 9 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';'
8 10
9 11 test:
10 12 make test-clean
11 13 make test-only
12 14
13 15 test-clean:
14 16 rm -rf coverage.xml htmlcov junit.xml pylint.log result
15 17 find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';'
16 18
17 19 test-only:
18 20 PYTHONHASHSEED=random \
19 21 py.test -x -vv -r xw -p no:sugar \
20 22 --cov=vcsserver --cov-report=term-missing --cov-report=html vcsserver
21 23
22 24 generate-pkgs:
23 25 nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses"
26
27 pip-packages:
28 python ${OUTDATED_PACKAGES}
General Comments 0
You need to be logged in to leave comments. Login now