-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 755 Bytes
/
Makefile
File metadata and controls
31 lines (21 loc) · 755 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
default: build
build:
go build -o terraform-provider-agentlink
install: build
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/frontegg/agentlink/0.0.1/$$(go env GOOS)_$$(go env GOARCH)
cp terraform-provider-agentlink ~/.terraform.d/plugins/registry.terraform.io/frontegg/agentlink/0.0.1/$$(go env GOOS)_$$(go env GOARCH)/
test:
go test -v ./...
testacc:
TF_ACC=1 go test -v ./... -timeout 120m
fmt:
go fmt ./...
vet:
go vet ./...
tidy:
go mod tidy
test-plan: build
cd examples/provider && TF_LOG=INFO TF_CLI_CONFIG_FILE=./dev.tfrc terraform plan
test-apply: build
cd examples/provider && TF_LOG=INFO TF_CLI_CONFIG_FILE=./dev.tfrc terraform apply -auto-approve
.PHONY: build install test testacc fmt vet tidy test-plan test-apply