Show More
@@ -1,21 +1,23 b'' | |||||
1 |
|
1 | |||
2 | .PHONY: clean test test-clean test-only generate-pkgs |
|
2 | .PHONY: clean test test-clean test-only generate-pkgs | |
3 |
|
3 | |||
4 |
|
4 | |||
5 | clean: |
|
5 | clean: | |
6 | make test-clean |
|
6 | make test-clean | |
7 | find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' \) -exec rm '{}' ';' |
|
7 | find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';' | |
8 |
|
8 | |||
9 | test: |
|
9 | test: | |
10 | make test-clean |
|
10 | make test-clean | |
11 | make test-only |
|
11 | make test-only | |
12 |
|
12 | |||
13 | test-clean: |
|
13 | test-clean: | |
14 | rm -rf coverage.xml htmlcov junit.xml pylint.log result |
|
14 | rm -rf coverage.xml htmlcov junit.xml pylint.log result | |
15 | find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';' |
|
15 | find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';' | |
16 |
|
16 | |||
17 | test-only: |
|
17 | test-only: | |
18 | PYTHONHASHSEED=random py.test -vv -r xw -p no:sugar --cov=vcsserver --cov-report=term-missing --cov-report=html vcsserver |
|
18 | PYTHONHASHSEED=random \ | |
|
19 | py.test -x -vv -r xw -p no:sugar \ | |||
|
20 | --cov=vcsserver --cov-report=term-missing --cov-report=html vcsserver | |||
19 |
|
21 | |||
20 | generate-pkgs: |
|
22 | generate-pkgs: | |
21 | nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses" |
|
23 | nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses" |
General Comments 0
You need to be logged in to leave comments.
Login now