source: rtems-central/Makefile @ 0500b9a

Last change on this file since 0500b9a was e49c759, checked in by Sebastian Huber <sebastian.huber@…>, on 07/15/20 at 08:04:25

Rename "rtemsqual" in "rtemsspec"

  • Property mode set to 100644
File size: 683 bytes
Line 
1PY_SRC_FILES = $(wildcard *.py) $(wildcard rtemsspec/*.py)
2PY_ALL_FILES = $(PY_SRC_FILES) $(wildcard rtemsspec/tests/*.py)
3
4all: check format analyse coverage-report
5
6check: check-env
7        coverage run --branch -m pytest -vv rtemsspec/tests
8
9format: $(PY_ALL_FILES) | check-env
10        yapf -i --parallel $^
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 --fail-under=100 --include=$(subst $(SPACE),$(COMMA),$(PY_SRC_FILES))
26
27.PHONY: 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.