forked from allegro/ralph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (45 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
TEST?=ralph
.PHONY: test flake clean coverage docs coveralls
package: build-package upload-package
build-package:
rm -rf ./build 2>/dev/null 1>/dev/null
./packaging/build-package.sh
upload-package:
./packaging/upload-package.sh
install-js:
npm install
bower install
js-hint:
find src/ralph|grep "\.js$$"|grep -v vendor|xargs ./node_modules/.bin/jshint;
install: install-js
pip3 install -r requirements/prod.txt
install-test:
pip3 install -r requirements/test.txt
install-dev:
pip3 install -r requirements/dev.txt
install-docs:
pip3 install -r requirements/docs.txt
isort:
isort --diff --recursive --check-only --quiet src
test: clean
test_ralph test $(TEST)
flake: isort
flake8 src/ralph
flake8 src/ralph/settings --ignore=F405 --exclude=*local.py
@cat scripts/flake.txt
clean:
find . -name '*.py[cod]' -exec rm -rf {} \;
coverage: clean
coverage run $(shell which test_ralph) test $(TEST) --settings="ralph.settings.test"
coverage report
docs:
mkdocs build
run:
dev_ralph runserver_plus 0.0.0.0:8000
menu:
ralph sitetree_resync_apps
coveralls: install-docs docs coverage
translate_messages:
ralph makemessages -a
compile_messages:
ralph compilemessages