forked from Samsung/Universum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (24 loc) · 755 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
TEST_TARGETS = pytest doctest
.PHONY: all clean doc doc_clean test $(TEST_TARGETS) pylint mypy images rebuild
all: doc
clean: doc_clean
doc:
+$(MAKE) -C doc html
doc_clean:
+$(MAKE) -C doc clean
test:
for t in $(TEST_TARGETS); do $(MAKE) $$t || error=1; done; exit $$error
pytest:
python -m pytest --doctest-modules -vvs --junitxml=junit_results.xml --cov-report=html \
--cov=universum --cov=analyzers --cov=code_report --cov=tests --cov-branch \
--ignore=.universum.py --ignore=noxfile.py
doctest:
+$(MAKE) -C doc doctest
pylint:
python -m pylint --rcfile=pylintrc *.py universum/ tests/
mypy:
python -m mypy universum/ tests/
images:
+$(MAKE) -C tests/docker all
rebuild:
+$(MAKE) -C tests/docker DOCKER_ARGS="--no-cache" all