##// 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 clean:
7 clean:
6 make test-clean
8 make test-clean
7 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';'
9 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';'
8
10
9 test:
11 test:
10 make test-clean
12 make test-clean
11 make test-only
13 make test-only
12
14
13 test-clean:
15 test-clean:
14 rm -rf coverage.xml htmlcov junit.xml pylint.log result
16 rm -rf coverage.xml htmlcov junit.xml pylint.log result
15 find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';'
17 find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';'
16
18
17 test-only:
19 test-only:
18 PYTHONHASHSEED=random \
20 PYTHONHASHSEED=random \
19 py.test -x -vv -r xw -p no:sugar \
21 py.test -x -vv -r xw -p no:sugar \
20 --cov=vcsserver --cov-report=term-missing --cov-report=html vcsserver
22 --cov=vcsserver --cov-report=term-missing --cov-report=html vcsserver
21
23
22 generate-pkgs:
24 generate-pkgs:
23 nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses"
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