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