generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 2
/
GNUmakefile
34 lines (25 loc) · 842 Bytes
/
GNUmakefile
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
default: testacc
# Run acceptance tests
.PHONY: testacc example
testacc:
TF_ACC=1 go test ./... -v $(TESTARGS) -timeout 120m
name = minecraft
organization = hashicraft
version = 0.1.0
log_level = info
build:
go build -o bin/terraform-provider-$(name)_v$(version)
install: build clean
mkdir -p ~/.terraform.d/plugins/local/$(organization)/$(name)/$(version)/linux_amd64
mv bin/terraform-provider-$(name)_v$(version) ~/.terraform.d/plugins/local/$(organization)/$(name)/$(version)/linux_amd64/
clean:
rm -rf example/.terraform*
rm -rf example/terraform.tfstate*
init:
TF_LOG=$(log_level) terraform -chdir=examples init
plan:
TF_LOG=$(log_level) terraform -chdir=examples plan
apply:
TF_LOG=$(log_level) terraform -chdir=examples apply -auto-approve
destroy:
TF_LOG=$(log_level) terraform -chdir=examples destroy -auto-approve