##// END OF EJS Templates
makefile: added commands to quickly build docs.
marcink -
r13:94668ab4 default
parent child Browse files
Show More
@@ -1,39 +1,47 b''
1
1
2 WEBPACK=./node_modules/webpack/bin/webpack.js
2 WEBPACK=./node_modules/webpack/bin/webpack.js
3 GRUNT=grunt
3 GRUNT=grunt
4 NODE_PATH=./node_modules
4 NODE_PATH=./node_modules
5 FLAKE8=flake8 setup.py pytest_pylons/ rhodecode/ --select=E124 --ignore=E711,E712,E510,E121,E122,E126,E127,E128,E501,F401 --max-line-length=100 --exclude=*rhodecode/lib/dbmigrate/*,*rhodecode/tests/*,*rhodecode/lib/vcs/utils/*
5 FLAKE8=flake8 setup.py pytest_pylons/ rhodecode/ --select=E124 --ignore=E711,E712,E510,E121,E122,E126,E127,E128,E501,F401 --max-line-length=100 --exclude=*rhodecode/lib/dbmigrate/*,*rhodecode/tests/*,*rhodecode/lib/vcs/utils/*
6 CI_PREFIX=enterprise
6 CI_PREFIX=enterprise
7
7
8 .PHONY: help clean test test-clean test-lint test-only
8 .PHONY: docs docs-clean ci-docs clean test test-clean test-lint test-only
9
10
11 docs:
12 (cd docs; nix-build default.nix -o result; make clean html)
9
13
10 help:
14 docs-clean:
11 @echo "TODO: describe Makefile"
15 (cd docs; make clean)
16
17 ci-docs: docs;
18
12
19
13 clean: test-clean
20 clean: test-clean
14 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' \) -exec rm '{}' ';'
21 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' \) -exec rm '{}' ';'
15
22
16 test: test-clean test-lint test-only
23 test: test-clean test-lint test-only
17
24
18 test-clean:
25 test-clean:
19 rm -rf coverage.xml htmlcov junit.xml pylint.log result
26 rm -rf coverage.xml htmlcov junit.xml pylint.log result
20
27
21 test-lint:
28 test-lint:
22 if [ "$$IN_NIX_SHELL" = "1" ]; then \
29 if [ "$$IN_NIX_SHELL" = "1" ]; then \
23 $(FLAKE8); \
30 $(FLAKE8); \
24 else \
31 else \
25 $(FLAKE8) --format=pylint --exit-zero > pylint.log; \
32 $(FLAKE8) --format=pylint --exit-zero > pylint.log; \
26 fi
33 fi
27
34
28 test-only:
35 test-only:
29 PYTHONHASHSEED=random py.test -vv -r xw --cov=rhodecode --cov-report=term-missing --cov-report=html rhodecode/tests/
36 PYTHONHASHSEED=random py.test -vv -r xw --cov=rhodecode --cov-report=term-missing --cov-report=html rhodecode/tests/
30
37
31 web-build:
38 web-build:
32 NODE_PATH=$(NODE_PATH) $(GRUNT)
39 NODE_PATH=$(NODE_PATH) $(GRUNT)
33
40
34 web-test:
41 web-test:
35 @echo "no test for our javascript, yet!"
42 @echo "no test for our javascript, yet!"
36
43
37 docs-bootstrap:
44 docs-bootstrap:
38 (cd docs; nix-build default.nix -o result)
45 (cd docs; nix-build default.nix -o result)
39 @echo "Please go to docs folder and run make html"
46 @echo "Please go to docs folder and run make html"
47
General Comments 0
You need to be logged in to leave comments. Login now