forked from fourplusone/terraform-provider-jira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (23 loc) · 749 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
PKG := $(shell go list ./... | grep -v vendor)
TEST := $(shell go list ./... |grep -v vendor)
ifndef JIRA_URL
JIRA_URL := http://127.0.0.1:2990/jira
endif
ifndef JIRA_USER
JIRA_USER := admin
endif
ifndef JIRA_PASSWORD
JIRA_PASSWORD := admin
endif
.PHONY: test
.DEFAULT_GOAL := help
help: ## List targets & descriptions
@cat Makefile* | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
deps: ## Download dependencies
go mod download
build: ## Build
go build .
release: ## Build the go binaries for various platform
./scripts/release.sh
test: ## Run tests
TF_ACC=1 JIRA_URL="$(JIRA_URL)" JIRA_PASSWORD="$(JIRA_PASSWORD)" JIRA_USER="$(JIRA_USER)" go test -v $(TEST)