forked from openshift-assisted/jira-unfurl-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (23 loc) · 862 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
CONTAINER_CMD := $(or $(CONTAINER_CMD), $(shell command -v podman 2> /dev/null))
ifndef CONTAINER_CMD
CONTAINER_CMD := docker
endif
JIRA_UNFURL_BOT_IMAGE := $(or $(JIRA_UNFURL_BOT_IMAGE), "quay.io/edge-infrastructure/jira-unfurl-bot")
JIRA_UNFURL_BOT_TAG := $(or $(JIRA_UNFURL_BOT_TAG),latest)
build-image:
$(CONTAINER_CMD) build $(CONTAINER_BUILD_EXTRA_PARAMS) -t $(JIRA_UNFURL_BOT_IMAGE):$(JIRA_UNFURL_BOT_TAG) .
install:
pip install -r requirements.txt .
install-lint:
pip install .[lint]
full-install: install install-lint
flake8:
flake8 src/
format:
black src/
isort --profile black src
lint-manifest:
oc process --local=true -f openshift/template.yaml --param IMAGE_TAG=foobar | oc apply --dry-run=client -f -
lint: flake8 format
git diff --exit-code
.PHONY: install install-lint full-install format flake8 lint lint-manifest build-image