source: rtems-central/Makefile @ fd03a17

Last change on this file since fd03a17 was fd03a17, checked in by Sebastian Huber <sebastian.huber@…>, on 04/17/20 at 05:25:45

Makefile: Very verbose test reports

  • Property mode set to 100644
File size: 645 bytes
Line 
1PY_SRC_FILES = $(wildcard *.py) $(wildcard rtemsqual/*.py)
2PY_ALL_FILES = $(PY_SRC_FILES) $(wildcard rtemsqual/tests/*.py)
3
4all: check format analyse coverage-report
5
6check: check-env
7        coverage run -m pytest -vv rtemsqual/tests
8
9format: $(PY_ALL_FILES) | check-env
10        yapf -i $^
11
12analyse: $(PY_SRC_FILES) | check-env
13        flake8 $^
14        mypy $^
15        pylint $^
16
17check-env:
18        test -n "$$VIRTUAL_ENV"
19
20EMPTY :=
21SPACE := $(EMPTY) $(EMPTY)
22COMMA := ,
23
24coverage-report:
25        coverage report -m --include=$(subst $(SPACE),$(COMMA),$(PY_SRC_FILES))
26
27.PONY: env
28
29env:
30        python3 -m venv env
31        . env/bin/activate && pip install --upgrade pip && pip install -r requirements.txt
Note: See TracBrowser for help on using the repository browser.