generated from gcallah/demo-repo3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
52 lines (36 loc) · 799 Bytes
/
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
# LINTER = flake8
# API_DIR = server
# DB_DIR = db
# REQ_DIR = .
# PYTESTFLAGS = -vv --verbose --tb=short
# FORCE:
# prod: all_tests github
# github: FORCE
# - git commit -a
# git push origin master
# all_tests: lint unit
# unit: FORCE
# cd $(API_DIR); pytest $(PYTESTFLAGS)
# lint: FORCE
# $(LINTER) $(API_DIR)/*.py
# $(LINTER) $(DB_DIR)/*.py
# dev_env: FORCE
# pip install -r $(REQ_DIR)/requirements-dev.txt
# docs: FORCE
# cd $(API_DIR); make docs
API_DIR = server
DB_DIR = db
REQ_DIR = .
FORCE:
prod: all_tests github
github: FORCE
- git commit -a
git push origin master
all_tests: FORCE
cd $(DB_DIR); make tests
cd $(API_DIR); make tests
dev_env: FORCE
pip install -r $(REQ_DIR)/requirements-dev.txt
all_docs: FORCE
cd $(API_DIR); make docs
cd $(DB_DIR); make docs