Makefile
55 lines
| 1.5 KiB
| text/x-makefile
|
MakefileLexer
r1220 | ||||
r3450 | .PHONY: clean docs docs-clean docs-cleanup test test-clean test-only test-only-postgres test-only-mysql web-build generate-pkgs | |||
r1 | ||||
NODE_PATH=./node_modules | ||||
r3162 | WEBPACK=./node_binaries/webpack | |||
GRUNT=./node_binaries/grunt | ||||
r1220 | ||||
clean: | ||||
make test-clean | ||||
find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' \) -exec rm '{}' ';' | ||||
r1 | ||||
r1220 | test: | |||
make test-clean | ||||
make test-only | ||||
r13 | ||||
r1220 | test-clean: | |||
rm -rf coverage.xml htmlcov junit.xml pylint.log result | ||||
find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';' | ||||
test-only: | ||||
r2100 | PYTHONHASHSEED=random \ | |||
py.test -x -vv -r xw -p no:sugar --cov=rhodecode \ | ||||
--cov-report=term-missing --cov-report=html \ | ||||
rhodecode | ||||
test-only-mysql: | ||||
PYTHONHASHSEED=random \ | ||||
py.test -x -vv -r xw -p no:sugar --cov=rhodecode \ | ||||
--cov-report=term-missing --cov-report=html \ | ||||
--ini-config-override='{"app:main": {"sqlalchemy.db1.url": "mysql://root:qweqwe@localhost/rhodecode_test"}}' \ | ||||
rhodecode | ||||
test-only-postgres: | ||||
PYTHONHASHSEED=random \ | ||||
py.test -x -vv -r xw -p no:sugar --cov=rhodecode \ | ||||
--cov-report=term-missing --cov-report=html \ | ||||
--ini-config-override='{"app:main": {"sqlalchemy.db1.url": "postgresql://postgres:qweqwe@localhost/rhodecode_test"}}' \ | ||||
rhodecode | ||||
r13 | ||||
docs: | ||||
(cd docs; nix-build default.nix -o result; make clean html) | ||||
r1 | ||||
r13 | docs-clean: | |||
(cd docs; make clean) | ||||
r1214 | docs-cleanup: | |||
(cd docs; make cleanup) | ||||
r1 | web-build: | |||
NODE_PATH=$(NODE_PATH) $(GRUNT) | ||||
r3450 | generate-pkgs: | |||
nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses" | ||||