-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
47 lines (34 loc) · 918 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
VBIN=venv/bin
FLAKE8=$(VBIN)/flake8
NOSE=$(VBIN)/nose2
MYPY=$(VBIN)/mypy
COVERAGE=$(VBIN)/coverage
NOSETESTS=TZ=GMT $(NOSE) -v --log-level CRITICAL
TEST=
all check: flake8 mypy nosetests
flake8: venv
$(FLAKE8) rooster.py setup.py snipe.py swearing.py snipe tests
nosetests: venv
$(NOSETESTS) $(TEST)
mypy: venv
$(MYPY) rooster.py setup.py swearing.py snipe tests
coverage: venv
$(COVERAGE) erase
$(NOSETESTS) -C $(TEST)
$(COVERAGE) html
clean::
$(RM) -r .coverage profiling htmlcov parser.out snipe/parser.out tests/parser.out
venv: venv-stamp
venv-stamp:
$(MAKE) venv-clean
python3 -m venv venv
venv/bin/pip install -U pip
venv/bin/pip install -r ./requirements.txt
venv/bin/pip install mypy flake8 nose2 coverage
venv/bin/pip install -e .
touch venv-stamp
venv-clean:
$(RM) -rf venv venv-stamp
clean:: venv-clean
install:
.PHONY: all clean install check flake8 nosetests venv venv-clean