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 | # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py |
|
4 | # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py | |
5 | OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES} |
|
5 | OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES} | |
6 |
|
6 | |||
7 | clean: |
|
7 | clean: | |
8 | make test-clean |
|
8 | make test-clean | |
9 | 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 '{}' ';' | |
10 |
|
10 | |||
11 | test: |
|
11 | test: | |
12 | make test-clean |
|
12 | make test-clean | |
13 | make test-only |
|
13 | make test-only | |
14 |
|
14 | |||
15 | test-clean: |
|
15 | test-clean: | |
16 | rm -rf coverage.xml htmlcov junit.xml pylint.log result |
|
16 | rm -rf coverage.xml htmlcov junit.xml pylint.log result | |
17 | find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';' |
|
17 | find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';' | |
18 | find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';' |
|
18 | find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';' | |
19 |
|
19 | |||
20 | test-only: |
|
20 | test-only: | |
21 | PYTHONHASHSEED=random \ |
|
21 | PYTHONHASHSEED=random \ | |
22 | py.test -x -vv -r xw -p no:sugar \ |
|
22 | py.test -x -vv -r xw -p no:sugar \ | |
23 | --cov=vcsserver --cov-report=term-missing --cov-report=html vcsserver |
|
23 | --cov=vcsserver --cov-report=term-missing --cov-report=html vcsserver | |
24 |
|
24 | |||
25 | generate-pkgs: |
|
25 | generate-pkgs: | |
26 | nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses --no-binary :all:" |
|
26 | nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses --no-binary :all:" | |
27 |
|
27 | |||
28 | pip-packages: |
|
28 | pip-packages: | |
29 | python ${OUTDATED_PACKAGES} |
|
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