##// END OF EJS Templates
makefile: change order of install deps
super-admin -
r1061:eeec64ac python3
parent child Browse files
Show More
@@ -1,93 +1,93 b''
1 1
2 2 # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py
3 3 OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES}
4 4
5 5 .PHONY: clean
6 6 ## Cleanup compiled and cache py files
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
12 12 .PHONY: test
13 13 ## run test-clean and tests
14 14 test:
15 15 make test-clean
16 16 make test-only
17 17
18 18
19 19 .PHONY:test-clean
20 20 ## run test-clean and tests
21 21 test-clean:
22 22 rm -rf coverage.xml htmlcov junit.xml pylint.log result
23 23 find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';'
24 24 find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';'
25 25
26 26
27 27 .PHONY: test-only
28 28 ## Run tests only without cleanup
29 29 test-only:
30 30 PYTHONHASHSEED=random \
31 31 py.test -x -vv -r xw -p no:sugar \
32 32 --cov-report=term-missing --cov-report=html --cov=vcsserver vcsserver
33 33
34 34
35 35
36 36 .PHONY: pip-packages
37 37 ## Show outdated packages
38 38 pip-packages:
39 39 python ${OUTDATED_PACKAGES}
40 40
41 41
42 42 .PHONY: sdist
43 43 ## Build sdist
44 44 sdist:
45 45 python setup.py sdist
46 46
47 47 .PHONY: dev-env
48 48 ## Build sdist
49 49 dev-env:
50 pip install -r requirements.txt -r requirements_debug.txt -r requirements_test.txt
50 pip install -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
51 51 pip install -e .
52 52
53 53 # Default command on calling make
54 54 .DEFAULT_GOAL := show-help
55 55
56 56 .PHONY: show-help
57 57 show-help:
58 58 @echo "$$(tput bold)Available rules:$$(tput sgr0)"
59 59 @echo
60 60 @sed -n -e "/^## / { \
61 61 h; \
62 62 s/.*//; \
63 63 :doc" \
64 64 -e "H; \
65 65 n; \
66 66 s/^## //; \
67 67 t doc" \
68 68 -e "s/:.*//; \
69 69 G; \
70 70 s/\\n## /---/; \
71 71 s/\\n/ /g; \
72 72 p; \
73 73 }" ${MAKEFILE_LIST} \
74 74 | LC_ALL='C' sort --ignore-case \
75 75 | awk -F '---' \
76 76 -v ncol=$$(tput cols) \
77 77 -v indent=19 \
78 78 -v col_on="$$(tput setaf 6)" \
79 79 -v col_off="$$(tput sgr0)" \
80 80 '{ \
81 81 printf "%s%*s%s ", col_on, -indent, $$1, col_off; \
82 82 n = split($$2, words, " "); \
83 83 line_length = ncol - indent; \
84 84 for (i = 1; i <= n; i++) { \
85 85 line_length -= length(words[i]) + 1; \
86 86 if (line_length <= 0) { \
87 87 line_length = ncol - indent - length(words[i]) - 1; \
88 88 printf "\n%*s ", -indent, " "; \
89 89 } \
90 90 printf "%s ", words[i]; \
91 91 } \
92 92 printf "\n"; \
93 93 }'
General Comments 0
You need to be logged in to leave comments. Login now