forked from sopel-irc/sopel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (38 loc) · 1.03 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
.PHONY: qa
qa: quality test coverages
.PHONY: quality mypy
quality:
flake8
mypy:
mypy sopel
.PHONY: test test_norecord test_novcr vcr_rerecord
test:
coverage run -m py.test -v .
test_norecord:
# error if VCR recording for a web request is missing (useful on CI)
coverage run -m py.test -v . --vcr-record=none
test_novcr:
# disable VCR completely; useful to check if recordings are outdated
coverage run -m py.test -v . --disable-vcr
vcr_rerecord:
# clear VCR cassettes and run tests to record fresh ones
rm -rf ./test/vcr/*
coverage run -m py.test -v . --vcr-record=all
.PHONY: coverage_report coverage_html coverages
coverage_report:
coverage report
coverage_html:
coverage html
coverages: coverage_report coverage_html
.PHONY: clean_docs build_docs docs cleandoc
clean_docs:
$(MAKE) -C docs clean
build_docs:
$(MAKE) -C docs html
docs: build_docs
cleandoc: clean_docs build_docs
.PHONY: install-hooks uninstall-hooks
install-hooks:
@./contrib/githooks/install-hooks.sh
uninstall-hooks:
@./contrib/githooks/uninstall-hooks.sh