From 1684479aa3ad7dd5668c26133820cffb2a15deab Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Fri, 29 Mar 2019 15:54:53 +0100 Subject: 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 --- scripts/jira/jira-bug-closer/Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 scripts/jira/jira-bug-closer/Makefile (limited to 'scripts') 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 -- cgit v1.2.3