##// END OF EJS Templates
ext-json: fixed tests and made the lib more consistent with orjson vs simplejson
ext-json: fixed tests and made the lib more consistent with orjson vs simplejson

File last commit:

r4967:2c261013 default
r5012:2b0b3872 default
Show More
Makefile
154 lines | 3.5 KiB | text/x-makefile | MakefileLexer
makefile: updated makefile to standard layout
r1220
makefile: remove nix stuff, added self-document version
r4899 # 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: remove nix stuff, added self-document version
r4899 .PHONY: clean
## Cleanup compiled and cache py files
makefile: updated makefile to standard layout
r1220 clean:
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: remove nix stuff, added self-document version
r4899
.PHONY: test
## run test-clean and tests
makefile: updated makefile to standard layout
r1220 test:
make test-clean
make test-only
makefile: added commands to quickly build docs.
r13
makefile: remove nix stuff, added self-document version
r4899
.PHONY:test-clean
## run test-clean and tests
makefile: updated makefile to standard layout
r1220 test-clean:
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: remove nix stuff, added self-document version
r4899
.PHONY: test-only
## Run tests only without cleanup
makefile: updated makefile to standard layout
r1220 test-only:
tests: allow running tests via make file on different databases
r2100 PYTHONHASHSEED=random \
makefile: remove nix stuff, added self-document version
r4899 py.test -x -vv -r xw -p no:sugar \
--cov-report=term-missing --cov-report=html \
--cov=rhodecode rhodecode
tests: allow running tests via make file on different databases
r2100
makefile: remove nix stuff, added self-document version
r4899 .PHONY: test-only-mysql
## run tests against mysql
tests: allow running tests via make file on different databases
r2100 test-only-mysql:
PYTHONHASHSEED=random \
makefile: remove nix stuff, added self-document version
r4899 py.test -x -vv -r xw -p no:sugar \
--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"}}' \
makefile: remove nix stuff, added self-document version
r4899 --cov=rhodecode rhodecode
tests: allow running tests via make file on different databases
r2100
makefile: remove nix stuff, added self-document version
r4899 .PHONY: test-only-postgres
## run tests against postgres
tests: allow running tests via make file on different databases
r2100 test-only-postgres:
PYTHONHASHSEED=random \
makefile: remove nix stuff, added self-document version
r4899 py.test -x -vv -r xw -p no:sugar \
--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"}}' \
makefile: remove nix stuff, added self-document version
r4899 --cov=rhodecode rhodecode
tests: allow running tests via make file on different databases
r2100
makefile: remove nix stuff, added self-document version
r4899 .PHONY: docs
## build docs
makefile: added commands to quickly build docs.
r13 docs:
(cd docs; nix-build default.nix -o result; make clean html)
project: added all source files and assets
r1
makefile: remove nix stuff, added self-document version
r4899
.PHONY: docs-clean
## Cleanup docs
makefile: added commands to quickly build docs.
r13 docs-clean:
(cd docs; make clean)
makefile: remove nix stuff, added self-document version
r4899
.PHONY: docs-cleanup
## Cleanup docs
make: updated docs make commands.
r1214 docs-cleanup:
(cd docs; make cleanup)
makefile: remove nix stuff, added self-document version
r4899
.PHONY: web-build
## Build JS packages static/js
project: added all source files and assets
r1 web-build:
NODE_PATH=$(NODE_PATH) $(GRUNT)
packages: removed nix files
r4904 # check required files
STATIC_CHECK="/robots.txt /502.html \
/js/scripts.min.js /js/rhodecode-components.js \
/css/style.css /css/style-polymer.css /css/style-ipython.css"
for file in $STATIC_CHECK;
do
if [ ! -f rhodecode/public/$file ]; then
echo "Missing $file expected after web-build"
exit 1
fi
done
makefile: added some handly functions for package generation
r3531
makefile: remove nix stuff, added self-document version
r4899 .PHONY: pip-packages
## show outdated packages
makefile: added outdated packages helper
r4253 pip-packages:
python ${OUTDATED_PACKAGES}
makefile: remove nix stuff, added self-document version
r4899
.PHONY: sdist
## Build sdist
sdist:
python setup.py sdist
makefile: added dev-env command
r4905 .PHONY: dev-env
## make dev-env based on the requirements files and install develop of packages
dev-env:
makefile: fixed installing vcsserver for tests
r4967 pushd ../rhodecode-vcsserver/ && make dev-env && popd
makefile: change install order of deps
r4942 pip install -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
makefile: added dev-env command
r4905 pip install -e .
makefile: remove nix stuff, added self-document version
r4899 # Default command on calling make
.DEFAULT_GOAL := show-help
makefile: added some handly functions for package generation
r3531
makefile: remove nix stuff, added self-document version
r4899 .PHONY: show-help
show-help:
@echo "$$(tput bold)Available rules:$$(tput sgr0)"
@echo
@sed -n -e "/^## / { \
h; \
s/.*//; \
:doc" \
-e "H; \
n; \
s/^## //; \
t doc" \
-e "s/:.*//; \
G; \
s/\\n## /---/; \
s/\\n/ /g; \
p; \
}" ${MAKEFILE_LIST} \
| LC_ALL='C' sort --ignore-case \
| awk -F '---' \
-v ncol=$$(tput cols) \
-v indent=19 \
-v col_on="$$(tput setaf 6)" \
-v col_off="$$(tput sgr0)" \
'{ \
printf "%s%*s%s ", col_on, -indent, $$1, col_off; \
n = split($$2, words, " "); \
line_length = ncol - indent; \
for (i = 1; i <= n; i++) { \
line_length -= length(words[i]) + 1; \
if (line_length <= 0) { \
line_length = ncol - indent - length(words[i]) - 1; \
printf "\n%*s ", -indent, " "; \
} \
printf "%s ", words[i]; \
} \
printf "\n"; \
}'
merge with default
r4903