-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (39 loc) · 1.13 KB
/
Makefile
File metadata and controls
51 lines (39 loc) · 1.13 KB
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
# This Makefile is not used (yet) for making, but rather, to simplify
# invocation of common tasks, especially about testing.
#
#
# Copyright (C) 2018 rerobots, Inc.
.PHONY: lint
lint:
pylint --disable=fixme,bad-option-value rerobots
.PHONY: check
check: lint
cd tests && pytest -v --ignore=test_instancecover.py
.PHONY: checklocal
checklocal: lint
cd tests && pytest -v --ignore=test_anonymous.py --ignore=test_instancecover.py
.PHONY: checkcover
checkcover: lint
cd tests && coverage run --source=rerobots -m pytest -v --ignore=test_instancecover.py
cd tests && coverage html -d cover
.PHONY: checklocalcover
checklocalcover: lint
cd tests && coverage run --source=rerobots -m pytest -v --ignore=test_anonymous.py --ignore=test_instancecover.py
cd tests && coverage html -d cover
.PHONY: checktests
checktests:
pylint -j 4 -E `find tests -name \*.py`
.PHONY: checkall
checkall: lint
cd tests && pytest -v
.PHONY: checkallcover
checkallcover: lint
cd tests && coverage run --source=rerobots -m pytest -v
cd tests && coverage html -d cover
.PHONY: doc
doc:
make -C doc
clean:
rm -rf tests/cover
rm -f tests/.coverage
make -C doc clean