Show More
@@ -10,12 +10,20 b' clean:' | |||||
10 |
|
10 | |||
11 |
|
11 | |||
12 | .PHONY: test |
|
12 | .PHONY: test | |
13 | ## Run tests |
|
13 | ## run test-clean and tests | |
14 | test: |
|
14 | test: | |
15 | make test-clean |
|
15 | make test-clean | |
16 | make test-only |
|
16 | make test-only | |
17 |
|
17 | |||
18 |
|
18 | |||
|
19 | .PHONY:test-clean | |||
|
20 | ## run test-clean and tests | |||
|
21 | test-clean: | |||
|
22 | rm -rf coverage.xml htmlcov junit.xml pylint.log result | |||
|
23 | find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';' | |||
|
24 | find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';' | |||
|
25 | ||||
|
26 | ||||
19 | .PHONY: test-only |
|
27 | .PHONY: test-only | |
20 | ## Run tests only without cleanup |
|
28 | ## Run tests only without cleanup | |
21 | test-only: |
|
29 | test-only: | |
@@ -24,13 +32,6 b' test-only:' | |||||
24 | --cov-report=term-missing --cov-report=html --cov=vcsserver vcsserver |
|
32 | --cov-report=term-missing --cov-report=html --cov=vcsserver vcsserver | |
25 |
|
33 | |||
26 |
|
34 | |||
27 | .PHONY: test-clean |
|
|||
28 | ## Cleanup test run artifacts |
|
|||
29 | test-clean: |
|
|||
30 | rm -rf coverage.xml htmlcov junit.xml pylint.log result |
|
|||
31 | find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';' |
|
|||
32 | find . -type d -name ".pytest_cache" -prune -exec rm -rf '{}' ';' |
|
|||
33 | find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';' |
|
|||
34 |
|
35 | |||
35 | .PHONY: pip-packages |
|
36 | .PHONY: pip-packages | |
36 | ## Show outdated packages |
|
37 | ## Show outdated packages | |
@@ -43,6 +44,11 b' pip-packages:' | |||||
43 | sdist: |
|
44 | sdist: | |
44 | python setup.py sdist |
|
45 | python setup.py sdist | |
45 |
|
46 | |||
|
47 | .PHONY: dev-env | |||
|
48 | ## Build sdist | |||
|
49 | dev-env: | |||
|
50 | pip install -r requirements.txt -r requirements_pinned.txt -r requirements_debug.txt -r requirements_test.txt | |||
|
51 | pip install -e . | |||
46 |
|
52 | |||
47 | # Default command on calling make |
|
53 | # Default command on calling make | |
48 | .DEFAULT_GOAL := show-help |
|
54 | .DEFAULT_GOAL := show-help | |
@@ -84,5 +90,4 b' show-help:' | |||||
84 | printf "%s ", words[i]; \ |
|
90 | printf "%s ", words[i]; \ | |
85 | } \ |
|
91 | } \ | |
86 | printf "\n"; \ |
|
92 | printf "\n"; \ | |
87 |
}' |
|
93 | }' | |
88 | | more $(shell test $(shell uname) == Darwin && echo '--no-init --raw-control-chars') |
|
General Comments 0
You need to be logged in to leave comments.
Login now