-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (21 loc) · 724 Bytes
/
Makefile
File metadata and controls
26 lines (21 loc) · 724 Bytes
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
export TF_ACC=1
# Values to install the provider locally for testing purposes
HOSTNAME=registry.terraform.io
NAMESPACE=mackerelio-labs
NAME=mackerel
BINARY=terraform-provider-${NAME}
VERSION=99.9.9
OS_ARCH=$(shell go env GOHOSTOS)_$(shell go env GOHOSTARCH)
.PHONY: test
test:
go test ./... -v -timeout 120m -coverprofile coverage.txt -covermode atomic
.PHONY: testacc
testacc:
TF_ACC=1 go test -v ./... -run $(TESTS) -timeout 120m
.PHONY: local-build
local-build:
go build -o ${BINARY}
.PHONY: local-install
local-install: local-build
mkdir -p ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH}
mv ${BINARY} ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH}