forked from LINKIWI/modern-paste
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
56 lines (45 loc) · 1.15 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
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:
java -version
sudo gem install sass
sudo npm install -g uglify-js
pip install -r requirements.txt
pre-commit install
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