summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-25 13:54:17 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-03-02 15:21:13 +0100
commitc0ac12a4b8c572caaa5034c3926ed0549fb6fbee (patch)
treebad000b1835723fda40a5f7c3d8c87e1df044408 /Makefile
downloadrtems-central-c0ac12a4b8c572caaa5034c3926ed0549fb6fbee.tar.bz2
Initial import
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..4c8f15a6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+all: *.py rtemsqual/*.py | check-env
+ coverage run -m pytest tests
+ yapf -i $^ tests/*.py
+ flake8 $^
+ mypy $^
+ pylint $^
+
+check-env:
+ test -n "$$VIRTUAL_ENV"
+
+coverage-report:
+ coverage report -m --omit 'env/*'
+
+.PONY: env
+
+env:
+ python3 -m venv env
+ . env/bin/activate
+ pip install --upgrade pip
+ pip install -r requirements.txt