Show More
@@ -1,5 +1,7 b'' | |||
|
1 | # required for pushd to work.. | |
|
1 | 2 | SHELL = /bin/bash |
|
2 | 3 | |
|
4 | ||
|
3 | 5 | # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py |
|
4 | 6 | OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES} |
|
5 | 7 | |
@@ -21,7 +23,7 b' test:' | |||
|
21 | 23 | make test-only |
|
22 | 24 | |
|
23 | 25 | |
|
24 | .PHONY:test-clean | |
|
26 | .PHONY: test-clean | |
|
25 | 27 | ## run test-clean and tests |
|
26 | 28 | test-clean: |
|
27 | 29 | rm -rf coverage.xml htmlcov junit.xml pylint.log result |
@@ -37,6 +39,7 b' test-only:' | |||
|
37 | 39 | --cov-report=term-missing --cov-report=html \ |
|
38 | 40 | --cov=rhodecode rhodecode |
|
39 | 41 | |
|
42 | ||
|
40 | 43 | .PHONY: test-only-mysql |
|
41 | 44 | ## run tests against mysql |
|
42 | 45 | test-only-mysql: |
@@ -93,25 +96,38 b' web-build:' | |||
|
93 | 96 | done |
|
94 | 97 | |
|
95 | 98 | .PHONY: pip-packages |
|
96 |
## |
|
|
99 | ## Show outdated packages | |
|
97 | 100 | pip-packages: |
|
98 | 101 | python ${OUTDATED_PACKAGES} |
|
99 | 102 | |
|
100 | 103 | |
|
101 |
.PHONY: |
|
|
102 | ## Build sdist | |
|
103 | sdist: | |
|
104 | python setup.py sdist | |
|
104 | .PHONY: build | |
|
105 | ## Build sdist/egg | |
|
106 | build: | |
|
107 | python -m build | |
|
105 | 108 | |
|
106 | 109 | |
|
107 | 110 | .PHONY: dev-env |
|
108 | 111 | ## make dev-env based on the requirements files and install develop of packages |
|
109 | 112 | dev-env: |
|
113 | pip install build virtualenv | |
|
110 | 114 |
|
|
111 | pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt | |
|
112 | pip install --no-index --find-links=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt | |
|
115 | pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_rc_tools.txt -r requirements_test.txt -r requirements_debug.txt | |
|
116 | pip install --no-index --find-links=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_rc_tools.txt -r requirements_test.txt -r requirements_debug.txt | |
|
113 | 117 | pip install -e . |
|
114 | 118 | |
|
119 | ||
|
120 | .PHONY: dev-srv | |
|
121 | ## run develop server instance, docker exec -it $(docker ps -q --filter 'name=dev-enterprise-ce') /bin/bash | |
|
122 | dev-srv: | |
|
123 | pserve --reload .dev/dev.ini | |
|
124 | ||
|
125 | .PHONY: dev-srv-g | |
|
126 | ## run gunicorn multi process workers | |
|
127 | dev-srv-g: | |
|
128 | gunicorn --workers=4 --paste .dev/dev_g.ini --bind=0.0.0.0:10020 --worker-class=gevent --threads=1 --config=configs/gunicorn_config.py --timeout=120 | |
|
129 | ||
|
130 | ||
|
115 | 131 | # Default command on calling make |
|
116 | 132 | .DEFAULT_GOAL := show-help |
|
117 | 133 | |
@@ -153,4 +169,3 b' show-help:' | |||
|
153 | 169 | } \ |
|
154 | 170 | printf "\n"; \ |
|
155 | 171 | }' |
|
156 |
General Comments 0
You need to be logged in to leave comments.
Login now