forked from LINKIWI/modern-paste
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (44 loc) · 1.12 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
export PYTHONPATH := app:$(PYTHONPATH)
all:
$(MAKE) dependencies
$(MAKE) check-style
$(MAKE) test-coverage
$(MAKE) default
skip-tests:
$(MAKE) dependencies
$(MAKE) default
default:
mkdir -p app/static/build/js
mkdir -p app/static/build/css
python build/build_database.py --create
python build/build_js.py --config-environment
python build/build_css.py --config-environment
dev:
mkdir -p app/static/build/js
mkdir -p app/static/build/css
python build/build_database.py --create
python build/build_js.py --dev
python build/build_css.py --dev
prod:
mkdir -p app/static/build/js
mkdir -p app/static/build/css
python build/build_database.py --create
python build/build_js.py --prod
python build/build_css.py --prod
dependencies:
gem install sass
pip install -r requirements.txt
pre-commit install
pre-commit autoupdate
git submodule init
git submodule update
clean:
rm -rf app/static/build
python build/build_database.py --drop
test:
python -m unittest discover -s tests -v
test-coverage:
coverage run --source=app -m unittest discover -s tests -v
coverage report -m
check-style:
pre-commit run --all-files