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