forked from ralfholly/ships-bell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 649 Bytes
/
Makefile
File metadata and controls
41 lines (31 loc) · 649 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
SHELL:=/bin/bash
MIN_COVERAGE_PERCENTAGE := 100
MAKE := @$(MAKE) --quiet
.PHONY:
all:
@$(MAKE) pylint
.PHONY:
pylint:
@python3 -m pylint *.py tests/*.py
.PHONY:
test:
@$(MAKE) pylint
@python3 -m unittest discover tests/
.PHONY:
test_cover_run:
$(MAKE) pylint
@python3-coverage run -m unittest discover tests/
.PHONY:
test_cover_annotate:
@python3-coverage annotate
.PHONY:
test_cover_report:
@python3-coverage report --fail-under $(MIN_COVERAGE_PERCENTAGE)
.PHONY:
test_cover:
@$(MAKE) test_cover_run
@$(MAKE) test_cover_annotate
@$(MAKE) test_cover_report
.PHONY:
clean:
@find \( -name "*.pyc" -o -name "*.*,cover" \) -delete