-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (31 loc) · 767 Bytes
/
Makefile
File metadata and controls
39 lines (31 loc) · 767 Bytes
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
SRC_DIR = src
DOC_DIR = docs
PROJECT_DIR = pyhn
MAKE = make
PORT = 8080
all:
make install
make test
make html
make clean
install:
pip install -r requirements/prod.txt -q
pip install -r requirements/dev.txt -q
pip install -r requirements/docs.txt -q
pip install -r requirements/test.txt -q
lint:
prospector $(SRC_DIR) -s veryhigh
test:
python $(SRC_DIR)/manage.py test --failfast --nocapture --with-coverage --cover-package=$(PROJECT_DIR) --cover-erase --settings=pyhn.settings.test
html:
cd $(DOC_DIR) && $(MAKE) html
clean:
rm -rf *.egg-info
rm -rf build/*
rm -rf dist/*
rm -rf src/*.egg-info
find $(SRC_DIR) -name "*.pyc" | xargs rm
run:
cd $(SRC_DIR) && python manage.py runserver 0.0.0.0:$(PORT)
score:
python $(SRC_DIR)/manage.py score