-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (36 loc) · 1.58 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
default: install
generate-docs:
go generate ./...
install:
go install .
lint:
golangci-lint run
test:
go test -count=1 -parallel=4 ./...
testacc:
TF_ACC=1 go test -count=1 -parallel=1 -timeout 10m -v ./...
testacc-encrypt:
TF_ACC=1 go test -count=1 -parallel=1 -timeout 10m -v ./... -run TestAccEncryptionResource
test-install: install
terraform -chdir="./examples/provider-install-verification" plan
test-encrypt-plan: install
terraform -chdir="./examples/resources/keboola_encryption" plan
test-encrypt-apply: install
terraform -chdir="./examples/resources/keboola_encryption" apply -auto-approve
test-encrypt-show: install
terraform -chdir="./examples/resources/keboola_encryption" state show keboola_encryption.encryption_test
test-encrypt-destroy: install
terraform -chdir="./examples/resources/keboola_encryption" apply -destroy -auto-approve
test-config-plan: install
terraform -chdir="./examples/resources/keboola_component_configuration" plan
test-config-apply: install
terraform -chdir="./examples/resources/keboola_component_configuration" apply -auto-approve
test-config-destroy: install
terraform -chdir="./examples/resources/keboola_component_configuration" apply -destroy -auto-approve
test-config-show-state: install
terraform -chdir="./examples/resources/keboola_component_configuration" state show keboola_component_configuration.ex_generic_test
test-config: test-config-destroy test-config-apply test-config-apply test-config-show-state
clean-examples-state:
rm -r ./examples/**/**/*tfstate* || true
rm -rf ./examples/**/**/.terraform*
clean: clean-examples-state