##// END OF EJS Templates
feat(redis): added redis prefix support for cache backend
feat(redis): added redis prefix support for cache backend

File last commit:

r1282:f6453d89 default
r1313:cbb3f19b default
Show More
Makefile
130 lines | 4.1 KiB | text/x-makefile | MakefileLexer
dev: updated makefile
r1282 .DEFAULT_GOAL := help
# Pretty print values cf. https://misc.flogisoft.com/bash/tip_colors_and_formatting
RESET := \033[0m # Reset all formatting
GREEN := \033[0;32m # Resets before setting 16b colour (32 -- green)
YELLOW := \033[0;33m
ORANGE := \033[0;38;5;208m # Reset then set 256b colour (208 -- orange)
PEACH := \033[0;38;5;216m
## ---------------------------------------------------------------------------------- ##
## ------------------------- Help usage builder ------------------------------------- ##
## ---------------------------------------------------------------------------------- ##
# use '# >>> Build commands' to create section
# use '# target: target description' to create help for target
.PHONY: help
help:
@echo "Usage:"
@cat $(MAKEFILE_LIST) | grep -E '^# >>>|^# [A-Za-z0-9_.-]+:' | sed -E 's/^# //' | awk ' \
BEGIN { \
green="\033[32m"; \
yellow="\033[33m"; \
reset="\033[0m"; \
section=""; \
} \
/^>>>/ { \
section=substr($$0, 5); \
printf "\n" green ">>> %s" reset "\n", section; \
next; \
} \
/^([A-Za-z0-9_.-]+):/ { \
target=$$1; \
gsub(/:$$/, "", target); \
description=substr($$0, index($$0, ":") + 2); \
if (description == "") { description="-"; } \
printf " - " yellow "%-35s" reset " %s\n", target, description; \
} \
'
makefiles: added gunicorn launch command
r1116 # required for pushd to work..
dev(makefile): added dev shell prompt
r1172 SHELL = /bin/bash
makefile: added standard makefile
r132
dev: updated makefile
r1282 # >>> Tests commands
makefile: added standard makefile
r132
makefile: cleanup makefile
r912 .PHONY: clean
dev: updated makefile
r1282 # clean: Cleanup compiled and cache py files
makefile: added standard makefile
r132 clean:
make test-clean
makefile: also cleanup .orig files
r642 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';'
makefile: always cleanup build dir
r1134 find . -type d -name "build" -prune -exec rm -rf '{}' ';'
makefile: added standard makefile
r132
makefile: cleanup makefile
r912
.PHONY: test
dev: updated makefile
r1282 # test: run test-clean and tests
makefile: added standard makefile
r132 test:
make test-clean
dev: updated makefile
r1282 unset RC_SQLALCHEMY_DB1_URL && unset RC_DB_URL && make test-only
makefile: added standard makefile
r132
makefile: cleanup makefile
r912
package: fix dev-env, bumped some deps to be consistent
r1102 .PHONY: test-clean
dev: updated makefile
r1282 # test-clean: run test-clean and tests
makefile: updates and cleanups
r1053 test-clean:
rm -rf coverage.xml htmlcov junit.xml pylint.log result
find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';'
find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';'
makefile: updated to latest format
r1040 .PHONY: test-only
dev: updated makefile
r1282 # test-only: Run tests only without cleanup
makefile: updated to latest format
r1040 test-only:
PYTHONHASHSEED=random \
py.test -x -vv -r xw -p no:sugar \
makefiles: added gunicorn launch command
r1116 --cov-report=term-missing --cov-report=html \
--cov=vcsserver vcsserver
makefile: updated to latest format
r1040
dev: updated makefile
r1282 # >>> Dev commands
makefile: added helpers for code cleanups/builds
r1165
package: fix dev-env, bumped some deps to be consistent
r1102
makefile: updated to latest format
r1040
dev(makefile): added dev shell prompt
r1172 .PHONY: dev-sh
dev: updated makefile
r1282 # dev-sh: make dev-sh
dev(makefile): added dev shell prompt
r1172 dev-sh:
dev(makefile): updated dev env to be synced with CE edition
r1174 sudo echo "deb [trusted=yes] https://apt.fury.io/rsteube/ /" | sudo tee -a "/etc/apt/sources.list.d/fury.list"
dev(makefile): added dev shell prompt
r1172 sudo apt-get update
dev(makefile): updated dev env to be synced with CE edition
r1174 sudo apt-get install -y zsh carapace-bin
dev(dev-shell): improvements to dev shell env
r1182 rm -rf /home/rhodecode/.oh-my-zsh
dev(makefile): added dev shell prompt
r1172 curl https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
chore(dev): print dev help cmd for nicer startup
r1207 @echo "source <(carapace _carapace)" > /home/rhodecode/.zsrc
@echo "${RC_DEV_CMD_HELP}"
dev(makefile): hide prompt info on dev sh env
r1213 @PROMPT='%(?.%F{green}√.%F{red}?%?)%f %B%F{240}%1~%f%b %# ' zsh
dev(makefile): added dev shell prompt
r1172
chore(dev): small adjustment to makefile
r1198
makefile: synced makefiles
r1240 .PHONY: dev-cleanup
dev: updated makefile
r1282 # dev-cleanup: Cleanup: pip freeze | grep -v "^-e" | grep -v "@" | xargs pip uninstall -y
makefile: synced makefiles
r1240 dev-cleanup:
pip freeze | grep -v "^-e" | grep -v "@" | xargs pip uninstall -y
rm -rf /tmp/*
makefile: updates and cleanups
r1053 .PHONY: dev-env
dev: updated makefile
r1282 # dev-env: make dev-env based on the requirements files and install develop of packages
makefile: added helpers for code cleanups/builds
r1165 ## Cleanup: pip freeze | grep -v "^-e" | grep -v "@" | xargs pip uninstall -y
makefile: updates and cleanups
r1053 dev-env:
Andrii Verbytskyi
fixed permissions for pip cache folder
r1227 sudo -u root chown rhodecode:rhodecode /home/rhodecode/.cache/pip/
tests: test fixes after py311 compat run
r1115 pip install build virtualenv
deps: make dev-env build faster and cache rc_testdata
r1090 pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
pip install --no-index --find-links=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
makefile: updates and cleanups
r1053 pip install -e .
makefile: updated to latest format
r1040
makefile: added dev-srv command to run the server app
r1104
dev(makefile): added sh shortcut for faster launch of dev env and shell
r1180 .PHONY: sh
dev: updated makefile
r1282 # sh: shortcut for make dev-sh dev-env
dev(makefile): added sh shortcut for faster launch of dev env and shell
r1180 sh:
chore(dev): small adjustment to makefile
r1198 make dev-env
make dev-sh
dev(makefile): added sh shortcut for faster launch of dev env and shell
r1180
makefile: added workers=n to gunicorn startup command
r1232 ## Allows changes of workers e.g make dev-srv-g workers=2
workers?=1
makefile: added dev-srv command to run the server app
r1104
fix(configs): removed waitress as a default runner for web service on development....
r1236 .PHONY: dev-srv
dev: updated makefile
r1282 # dev-srv: run gunicorn web server with reloader, use workers=N to set multiworker mode, workers=N allows changes of workers
make: synced makefiles
r1237 dev-srv:
makefile: added workers=n to gunicorn startup command
r1232 gunicorn --paste=.dev/dev.ini --bind=0.0.0.0:10010 --config=.dev/gunicorn_config.py --reload --workers=$(workers)
makefiles: added gunicorn launch command
r1116
dev: updated makefile
r1282 .PHONY: ruff-check
# ruff-check: run a ruff analysis
ruff-check:
ruff check --ignore F401 --ignore I001 --ignore E402 --ignore E501 --ignore F841 --exclude rhodecode/lib/dbmigrate --exclude .eggs --exclude .dev .
makefile: updated to latest format
r1040