-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 894 Bytes
/
Makefile
File metadata and controls
34 lines (25 loc) · 894 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
27
28
29
30
31
32
33
34
HOSTNAME=cloudconnexa.dev
NAMESPACE=openvpn
NAME=cloudconnexa
VERSION=0.0.12
BINARY=terraform-provider-${NAME}
OS_ARCH=$(shell go env GOHOSTOS)_$(shell go env GOHOSTARCH)
default: install
build:
go build -o ${BINARY}
release:
goreleaser release --clean --snapshot --skip-publish --skip-sign
install: build
mkdir -p ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH}
mv ${BINARY} ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH}
lint:
golangci-lint run ./... --disable errcheck
docs:
go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate
docs-check:
go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs validate
test:
go test -i $(TEST) || exit 1
echo $(TEST) | xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4
testacc:
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m