##// END OF EJS Templates
dev-env: Remove flake8 target from makefile....
Martin Bornhold -
r954:0aa8a71a default
parent child Browse files
Show More
@@ -1,47 +1,39 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/*
6 CI_PREFIX=enterprise
5 CI_PREFIX=enterprise
7
6
8 .PHONY: docs docs-clean ci-docs clean test test-clean test-lint test-only
7 .PHONY: docs docs-clean ci-docs clean test test-clean test-lint test-only
9
8
10
9
11 docs:
10 docs:
12 (cd docs; nix-build default.nix -o result; make clean html)
11 (cd docs; nix-build default.nix -o result; make clean html)
13
12
14 docs-clean:
13 docs-clean:
15 (cd docs; make clean)
14 (cd docs; make clean)
16
15
17 ci-docs: docs;
16 ci-docs: docs;
18
17
19
18
20 clean: test-clean
19 clean: test-clean
21 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' \) -exec rm '{}' ';'
20 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' \) -exec rm '{}' ';'
22
21
23 test: test-clean test-only
22 test: test-clean test-only
24
23
25 test-clean:
24 test-clean:
26 rm -rf coverage.xml htmlcov junit.xml pylint.log result
25 rm -rf coverage.xml htmlcov junit.xml pylint.log result
27
26
28 test-lint:
29 if [ "$$IN_NIX_SHELL" = "1" ]; then \
30 $(FLAKE8); \
31 else \
32 $(FLAKE8) --format=pylint --exit-zero > pylint.log; \
33 fi
34
35 test-only:
27 test-only:
36 PYTHONHASHSEED=random py.test -vv -r xw --cov=rhodecode --cov-report=term-missing --cov-report=html rhodecode/tests/
28 PYTHONHASHSEED=random py.test -vv -r xw --cov=rhodecode --cov-report=term-missing --cov-report=html rhodecode/tests/
37
29
38 web-build:
30 web-build:
39 NODE_PATH=$(NODE_PATH) $(GRUNT)
31 NODE_PATH=$(NODE_PATH) $(GRUNT)
40
32
41 web-test:
33 web-test:
42 @echo "no test for our javascript, yet!"
34 @echo "no test for our javascript, yet!"
43
35
44 docs-bootstrap:
36 docs-bootstrap:
45 (cd docs; nix-build default.nix -o result)
37 (cd docs; nix-build default.nix -o result)
46 @echo "Please go to docs folder and run make html"
38 @echo "Please go to docs folder and run make html"
47
39
General Comments 0
You need to be logged in to leave comments. Login now