forked from Mirantis/terraform-provider-launchpad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
47 lines (42 loc) · 1.38 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
default: test
LOCAL_TAG=$(shell git describe --tags)
# Run local unit testr
.PHONY: test
test:
go test ./... -timeout 120ms
# Run acceptance tests
.PHONY: testacc
testacc:
TF_ACC=1 go test ./... -v $(TESTARGS) -tags=integration -timeout 120m
# Local install of the plugin
.PHONY: local
local:
GORELEASER_CURRENT_TAG="$(LOCAL_TAG)" goreleaser build --clean --single-target --skip-validate
# "Local plugin generated. Use $(CURDIR)/dist/terraform-provider-launchpad_linux_amd64_v1 as your dev_overrides path in a terraform config file
#
# my_tf_config_file:
# ```
# provider_installation {
#
# # This disables the version and checksum verifications for this provider
# # and forces Terraform to look for the launchpad provider plugin in the
# # given directory.
# dev_overrides {
# "mirantis/launchpad" = "$(CURDIR)/dist/terraform-provider-launchpad_linux_amd64_v1"
# }
#
# # For all other providers, install them directly from their origin provider
# # registries as normal. If you omit this, Terraform will _only_ use
# # the dev_overrides block, and so no other providers will be available.
# direct {}
# }
# ```
#
# then run terraform with a config file override:
# ```
# $/> TF_CLI_CONFIG_FILE=my_tf_config_file terraform plan
# ```
# (or use an export)
#
# @see: https://developer.hashicorp.com/terraform/cli/config/config-file#development-overrides-for-provider-developers"
#