libretime/python_apps/airtime_analyzer/Makefile

20 lines
319 B
Makefile
Raw Normal View History

2021-06-07 23:58:16 +02:00
.PHONY: lint test
SHELL := bash
CPU_CORES := $(shell nproc)
MODULE_APP := airtime_analyzer
MODULE_TESTS := tests
lint:
pylint ${MODULE_APP}
pylint ${MODULE_TESTS}
fixtures:
bash tests/fixtures/generate.sh
test: fixtures
2021-06-07 23:58:16 +02:00
pytest -n ${CPU_CORES} --color=yes -v --cov=${MODULE_APP} ${MODULE_TESTS}
all: lint test