-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 731 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 731 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
35
36
37
NAME=dbtcloud
BINARY=terraform-provider-$(NAME)
default: install
setup:
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh
go install golang.org/x/tools/cmd/goimports@latest
build:
go build -ldflags "-w -s" -o $(BINARY) .
install: build
mkdir -p $(HOME)/.terraform.d/plugins
mv ./$(BINARY) $(HOME)/.terraform.d/plugins/$(BINARY)
doc:
go generate ./...
test: deps
go test -mod=readonly -count=1 ./...
test-acceptance: deps
TF_ACC=1 go test -v -mod=readonly -count=1 -p 5 -parallel 1 ./...
check-docs: doc
git diff --exit-code -- docs
deps:
go mod tidy
release:
git tag "v$(VERSION)"
git push origin "v$(VERSION)"
d2doc:
d2 terraform_resources.d2 terraform_resources.png -l elk