summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@qt.io>2019-03-29 15:54:53 +0100
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2019-04-05 08:30:30 +0000
commit1684479aa3ad7dd5668c26133820cffb2a15deab (patch)
tree22c3246928780adffeb5a9974a3c70cc84c5e009 /scripts
parent8a0c738d9b4d4fe739714ae7a7fcea2a71581285 (diff)
Add Makefile for the JIRA-Gerrit bot
The top-level .gitignore ignores makefiles, therefore this was not included in the first commit. Change-Id: I41bd3a899bf1754d3003dcaebbb78334799e530f Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/jira/jira-bug-closer/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/jira/jira-bug-closer/Makefile b/scripts/jira/jira-bug-closer/Makefile
new file mode 100644
index 00000000..12af7e77
--- /dev/null
+++ b/scripts/jira/jira-bug-closer/Makefile
@@ -0,0 +1,28 @@
+PIPENV := /usr/bin/env pipenv
+
+first:
+ $(PIPENV) install
+
+run:
+ $(PIPENV) run ./main.py
+
+production:
+ $(PIPENV) run ./main.py --production
+
+oauth:
+ $(PIPENV) run ./oauth_dance.py
+
+test: flake8 mypy
+ $(PIPENV) run py.test
+
+flake8:
+ $(PIPENV) run flake8
+
+coverage:
+ $(PIPENV) run py.test --cov-report=term --cov-report=html --cov=.
+ xdg-open htmlcov/index.html
+
+mypy:
+ $(PIPENV) run mypy --strict --ignore-missing-imports *.py
+
+check: test flake8 mypy