Show More
The requested changes are too big and content was truncated. Show full diff
@@ -1,135 +1,147 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 | NODE_PATH=./node_modules |
|
6 | 6 | WEBPACK=./node_binaries/webpack |
|
7 | 7 | GRUNT=./node_binaries/grunt |
|
8 | 8 | |
|
9 | 9 | .PHONY: clean |
|
10 | 10 | ## Cleanup compiled and cache py files |
|
11 | 11 | clean: |
|
12 | 12 | make test-clean |
|
13 | 13 | find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';' |
|
14 | 14 | |
|
15 | 15 | |
|
16 | 16 | .PHONY: test |
|
17 | 17 | ## run test-clean and tests |
|
18 | 18 | test: |
|
19 | 19 | make test-clean |
|
20 | 20 | make test-only |
|
21 | 21 | |
|
22 | 22 | |
|
23 | 23 | .PHONY:test-clean |
|
24 | 24 | ## run test-clean and tests |
|
25 | 25 | test-clean: |
|
26 | 26 | rm -rf coverage.xml htmlcov junit.xml pylint.log result |
|
27 | 27 | find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';' |
|
28 | 28 | find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';' |
|
29 | 29 | |
|
30 | 30 | |
|
31 | 31 | .PHONY: test-only |
|
32 | 32 | ## Run tests only without cleanup |
|
33 | 33 | test-only: |
|
34 | 34 | PYTHONHASHSEED=random \ |
|
35 | 35 | py.test -x -vv -r xw -p no:sugar \ |
|
36 | 36 | --cov-report=term-missing --cov-report=html \ |
|
37 | 37 | --cov=rhodecode rhodecode |
|
38 | 38 | |
|
39 | 39 | .PHONY: test-only-mysql |
|
40 | 40 | ## run tests against mysql |
|
41 | 41 | test-only-mysql: |
|
42 | 42 | PYTHONHASHSEED=random \ |
|
43 | 43 | py.test -x -vv -r xw -p no:sugar \ |
|
44 | 44 | --cov-report=term-missing --cov-report=html \ |
|
45 | 45 | --ini-config-override='{"app:main": {"sqlalchemy.db1.url": "mysql://root:qweqwe@localhost/rhodecode_test?charset=utf8"}}' \ |
|
46 | 46 | --cov=rhodecode rhodecode |
|
47 | 47 | |
|
48 | 48 | |
|
49 | 49 | .PHONY: test-only-postgres |
|
50 | 50 | ## run tests against postgres |
|
51 | 51 | test-only-postgres: |
|
52 | 52 | PYTHONHASHSEED=random \ |
|
53 | 53 | py.test -x -vv -r xw -p no:sugar \ |
|
54 | 54 | --cov-report=term-missing --cov-report=html \ |
|
55 | 55 | --ini-config-override='{"app:main": {"sqlalchemy.db1.url": "postgresql://postgres:qweqwe@localhost/rhodecode_test"}}' \ |
|
56 | 56 | --cov=rhodecode rhodecode |
|
57 | 57 | |
|
58 | 58 | .PHONY: docs |
|
59 | 59 | ## build docs |
|
60 | 60 | docs: |
|
61 | 61 | (cd docs; nix-build default.nix -o result; make clean html) |
|
62 | 62 | |
|
63 | 63 | |
|
64 | 64 | .PHONY: docs-clean |
|
65 | 65 | ## Cleanup docs |
|
66 | 66 | docs-clean: |
|
67 | 67 | (cd docs; make clean) |
|
68 | 68 | |
|
69 | 69 | |
|
70 | 70 | .PHONY: docs-cleanup |
|
71 | 71 | ## Cleanup docs |
|
72 | 72 | docs-cleanup: |
|
73 | 73 | (cd docs; make cleanup) |
|
74 | 74 | |
|
75 | 75 | |
|
76 | 76 | .PHONY: web-build |
|
77 | 77 | ## Build JS packages static/js |
|
78 | 78 | web-build: |
|
79 | 79 | NODE_PATH=$(NODE_PATH) $(GRUNT) |
|
80 | 80 | |
|
81 | # check required files | |
|
82 | STATIC_CHECK="/robots.txt /502.html \ | |
|
83 | /js/scripts.min.js /js/rhodecode-components.js \ | |
|
84 | /css/style.css /css/style-polymer.css /css/style-ipython.css" | |
|
85 | ||
|
86 | for file in $STATIC_CHECK; | |
|
87 | do | |
|
88 | if [ ! -f rhodecode/public/$file ]; then | |
|
89 | echo "Missing $file expected after web-build" | |
|
90 | exit 1 | |
|
91 | fi | |
|
92 | done | |
|
81 | 93 | |
|
82 | 94 | .PHONY: pip-packages |
|
83 | 95 | ## show outdated packages |
|
84 | 96 | pip-packages: |
|
85 | 97 | python ${OUTDATED_PACKAGES} |
|
86 | 98 | |
|
87 | 99 | |
|
88 | 100 | .PHONY: sdist |
|
89 | 101 | ## Build sdist |
|
90 | 102 | sdist: |
|
91 | 103 | python setup.py sdist |
|
92 | 104 | |
|
93 | 105 | |
|
94 | 106 | # Default command on calling make |
|
95 | 107 | .DEFAULT_GOAL := show-help |
|
96 | 108 | |
|
97 | 109 | .PHONY: show-help |
|
98 | 110 | show-help: |
|
99 | 111 | @echo "$$(tput bold)Available rules:$$(tput sgr0)" |
|
100 | 112 | @echo |
|
101 | 113 | @sed -n -e "/^## / { \ |
|
102 | 114 | h; \ |
|
103 | 115 | s/.*//; \ |
|
104 | 116 | :doc" \ |
|
105 | 117 | -e "H; \ |
|
106 | 118 | n; \ |
|
107 | 119 | s/^## //; \ |
|
108 | 120 | t doc" \ |
|
109 | 121 | -e "s/:.*//; \ |
|
110 | 122 | G; \ |
|
111 | 123 | s/\\n## /---/; \ |
|
112 | 124 | s/\\n/ /g; \ |
|
113 | 125 | p; \ |
|
114 | 126 | }" ${MAKEFILE_LIST} \ |
|
115 | 127 | | LC_ALL='C' sort --ignore-case \ |
|
116 | 128 | | awk -F '---' \ |
|
117 | 129 | -v ncol=$$(tput cols) \ |
|
118 | 130 | -v indent=19 \ |
|
119 | 131 | -v col_on="$$(tput setaf 6)" \ |
|
120 | 132 | -v col_off="$$(tput sgr0)" \ |
|
121 | 133 | '{ \ |
|
122 | 134 | printf "%s%*s%s ", col_on, -indent, $$1, col_off; \ |
|
123 | 135 | n = split($$2, words, " "); \ |
|
124 | 136 | line_length = ncol - indent; \ |
|
125 | 137 | for (i = 1; i <= n; i++) { \ |
|
126 | 138 | line_length -= length(words[i]) + 1; \ |
|
127 | 139 | if (line_length <= 0) { \ |
|
128 | 140 | line_length = ncol - indent - length(words[i]) - 1; \ |
|
129 | 141 | printf "\n%*s ", -indent, " "; \ |
|
130 | 142 | } \ |
|
131 | 143 | printf "%s ", words[i]; \ |
|
132 | 144 | } \ |
|
133 | 145 | printf "\n"; \ |
|
134 | 146 | }' |
|
135 | 147 |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed | |
This diff has been collapsed as it changes many lines, (542 lines changed) Show them Hide them |
|
1 | NO CONTENT: file was removed | |
This diff has been collapsed as it changes many lines, (9293 lines changed) Show them Hide them |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
General Comments 0
You need to be logged in to leave comments.
Login now