##// END OF EJS Templates
release: Finish preparation for 4.25.2
release: Finish preparation for 4.25.2

File last commit:

r4617:cfe99c5e default
r4694:27475bd8 tip stable
Show More
Makefile
98 lines | 2.8 KiB | text/x-makefile | MakefileLexer
makefile: updated
r4617 .DEFAULT_GOAL := help
makefile: updated makefile to standard layout
r1220
makefile: updated
r4617 # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py
OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES}
project: added all source files and assets
r1
NODE_PATH=./node_modules
js: use builtin packages for binaries...
r3162 WEBPACK=./node_binaries/webpack
GRUNT=./node_binaries/grunt
makefile: updated makefile to standard layout
r1220
makefile: updated
r4617 .PHONY: clean
clean: ## full clean
makefile: updated makefile to standard layout
r1220 make test-clean
makefile: also cleanup .orig files
r3476 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';'
project: added all source files and assets
r1
makefile: updated
r4617
.PHONY: test
test: ## run test-clean and tests
makefile: updated makefile to standard layout
r1220 make test-clean
make test-only
makefile: added commands to quickly build docs.
r13
makefile: updated
r4617
.PHONY:test-clean
test-clean: ## run test-clean and tests
makefile: updated makefile to standard layout
r1220 rm -rf coverage.xml htmlcov junit.xml pylint.log result
find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';'
makefile: cleanup coverage files for test cleanup
r3845 find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';'
makefile: updated makefile to standard layout
r1220
makefile: updated
r4617
.PHONY: test-only
test-only: ## run tests
tests: allow running tests via make file on different databases
r2100 PYTHONHASHSEED=random \
makefile: updated
r4617 py.test -x -vv -r xw -p no:sugar \
--cov=rhodecode --cov-report=term-missing --cov-report=html \
tests: allow running tests via make file on different databases
r2100 rhodecode
makefile: updated
r4617
.PHONY: test-only-mysql
test-only-mysql: ## run tests against mysql
tests: allow running tests via make file on different databases
r2100 PYTHONHASHSEED=random \
makefile: updated
r4617 py.test -x -vv -r xw -p no:sugar \
--cov=rhodecode --cov-report=term-missing --cov-report=html \
makefile: use utf8 for mysql tests
r3976 --ini-config-override='{"app:main": {"sqlalchemy.db1.url": "mysql://root:qweqwe@localhost/rhodecode_test?charset=utf8"}}' \
tests: allow running tests via make file on different databases
r2100 rhodecode
makefile: updated
r4617
.PHONY: test-only-postgres
test-only-postgres: ## run tests against postgres
tests: allow running tests via make file on different databases
r2100 PYTHONHASHSEED=random \
makefile: updated
r4617 py.test -x -vv -r xw -p no:sugar \
--cov=rhodecode --cov-report=term-missing --cov-report=html \
tests: allow running tests via make file on different databases
r2100 --ini-config-override='{"app:main": {"sqlalchemy.db1.url": "postgresql://postgres:qweqwe@localhost/rhodecode_test"}}' \
rhodecode
makefile: updated
r4617 .PHONY: docs
docs: ## build docs
makefile: added commands to quickly build docs.
r13 (cd docs; nix-build default.nix -o result; make clean html)
project: added all source files and assets
r1
makefile: updated
r4617
.PHONY: docs-clean
docs-clean: ## Cleanup docs
makefile: added commands to quickly build docs.
r13 (cd docs; make clean)
makefile: updated
r4617
.PHONY: docs-cleanup
docs-cleanup: ## Cleanup docs
make: updated docs make commands.
r1214 (cd docs; make cleanup)
makefile: updated
r4617
.PHONY: web-build
web-build: ## Build static/js
project: added all source files and assets
r1 NODE_PATH=$(NODE_PATH) $(GRUNT)
makefile: updated
r4617
.PHONY: generate-pkgs
generate-pkgs: ## generate new python packages
makefile: added generate packages
r3450 nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses"
makefile: added some handly functions for package generation
r3531
makefile: updated
r4617
.PHONY: pip-packages
pip-packages: ## show outdated packages
makefile: added outdated packages helper
r4253 python ${OUTDATED_PACKAGES}
makefile: updated
r4617
.PHONY: generate-js-pkgs
generate-js-pkgs: ## generate js packages
makefile: added some handly functions for package generation
r3531 rm -rf node_modules && \
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" && \
sed -i -e 's/http:\/\//https:\/\//g' pkgs/node-packages.nix
makefile: updated
r4617
.PHONY: generate-license-meta
generate-license-meta: ## Generate license metadata
makefile: added some handly functions for package generation
r3531 nix-build pkgs/license-generate.nix -o result-license && \
makefile: updated
r4617 cat result-license/licenses.json | python -m json.tool > rhodecode/config/licenses.json
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-24s\033[0m %s\n", $$1, $$2}'