##// END OF EJS Templates
makefile: use utf8 for mysql tests
marcink -
r3976:43ad454c default
parent child Browse files
Show More
@@ -1,65 +1,65 b''
1
1
2 .PHONY: clean docs docs-clean docs-cleanup test test-clean test-only test-only-postgres test-only-mysql web-build generate-pkgs
2 .PHONY: clean docs docs-clean docs-cleanup test test-clean test-only test-only-postgres test-only-mysql web-build generate-pkgs
3
3
4 NODE_PATH=./node_modules
4 NODE_PATH=./node_modules
5 WEBPACK=./node_binaries/webpack
5 WEBPACK=./node_binaries/webpack
6 GRUNT=./node_binaries/grunt
6 GRUNT=./node_binaries/grunt
7
7
8
8
9 clean:
9 clean:
10 make test-clean
10 make test-clean
11 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';'
11 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';'
12
12
13 test:
13 test:
14 make test-clean
14 make test-clean
15 make test-only
15 make test-only
16
16
17 test-clean:
17 test-clean:
18 rm -rf coverage.xml htmlcov junit.xml pylint.log result
18 rm -rf coverage.xml htmlcov junit.xml pylint.log result
19 find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';'
19 find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';'
20 find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';'
20 find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';'
21
21
22 test-only:
22 test-only:
23 PYTHONHASHSEED=random \
23 PYTHONHASHSEED=random \
24 py.test -x -vv -r xw -p no:sugar --cov=rhodecode \
24 py.test -x -vv -r xw -p no:sugar --cov=rhodecode \
25 --cov-report=term-missing --cov-report=html \
25 --cov-report=term-missing --cov-report=html \
26 rhodecode
26 rhodecode
27
27
28 test-only-mysql:
28 test-only-mysql:
29 PYTHONHASHSEED=random \
29 PYTHONHASHSEED=random \
30 py.test -x -vv -r xw -p no:sugar --cov=rhodecode \
30 py.test -x -vv -r xw -p no:sugar --cov=rhodecode \
31 --cov-report=term-missing --cov-report=html \
31 --cov-report=term-missing --cov-report=html \
32 --ini-config-override='{"app:main": {"sqlalchemy.db1.url": "mysql://root:qweqwe@localhost/rhodecode_test"}}' \
32 --ini-config-override='{"app:main": {"sqlalchemy.db1.url": "mysql://root:qweqwe@localhost/rhodecode_test?charset=utf8"}}' \
33 rhodecode
33 rhodecode
34
34
35 test-only-postgres:
35 test-only-postgres:
36 PYTHONHASHSEED=random \
36 PYTHONHASHSEED=random \
37 py.test -x -vv -r xw -p no:sugar --cov=rhodecode \
37 py.test -x -vv -r xw -p no:sugar --cov=rhodecode \
38 --cov-report=term-missing --cov-report=html \
38 --cov-report=term-missing --cov-report=html \
39 --ini-config-override='{"app:main": {"sqlalchemy.db1.url": "postgresql://postgres:qweqwe@localhost/rhodecode_test"}}' \
39 --ini-config-override='{"app:main": {"sqlalchemy.db1.url": "postgresql://postgres:qweqwe@localhost/rhodecode_test"}}' \
40 rhodecode
40 rhodecode
41
41
42
42
43 docs:
43 docs:
44 (cd docs; nix-build default.nix -o result; make clean html)
44 (cd docs; nix-build default.nix -o result; make clean html)
45
45
46 docs-clean:
46 docs-clean:
47 (cd docs; make clean)
47 (cd docs; make clean)
48
48
49 docs-cleanup:
49 docs-cleanup:
50 (cd docs; make cleanup)
50 (cd docs; make cleanup)
51
51
52 web-build:
52 web-build:
53 NODE_PATH=$(NODE_PATH) $(GRUNT)
53 NODE_PATH=$(NODE_PATH) $(GRUNT)
54
54
55 generate-pkgs:
55 generate-pkgs:
56 nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses"
56 nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses"
57
57
58 generate-js-pkgs:
58 generate-js-pkgs:
59 rm -rf node_modules && \
59 rm -rf node_modules && \
60 nix-shell pkgs/shell-generate.nix --command "node2nix --input package.json -o pkgs/node-packages.nix -e pkgs/node-env.nix -c pkgs/node-default.nix -d --flatten --nodejs-8" && \
60 nix-shell pkgs/shell-generate.nix --command "node2nix --input package.json -o pkgs/node-packages.nix -e pkgs/node-env.nix -c pkgs/node-default.nix -d --flatten --nodejs-8" && \
61 sed -i -e 's/http:\/\//https:\/\//g' pkgs/node-packages.nix
61 sed -i -e 's/http:\/\//https:\/\//g' pkgs/node-packages.nix
62
62
63 generate-license-meta:
63 generate-license-meta:
64 nix-build pkgs/license-generate.nix -o result-license && \
64 nix-build pkgs/license-generate.nix -o result-license && \
65 cat result-license/licenses.json | python -m json.tool > rhodecode/config/licenses.json No newline at end of file
65 cat result-license/licenses.json | python -m json.tool > rhodecode/config/licenses.json
General Comments 0
You need to be logged in to leave comments. Login now