-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
29 lines (23 loc) · 956 Bytes
/
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
TEST?=./...
PKG_NAME=slack
GO_FILES?=$$(find . -name "*.go" | grep -v vendor)
build:
go build -v
install: build
mkdir -p ~/.terraform.d/plugins/local/default/slack/0.0.2/darwin_arm64/
mv terraform-provider-slack ~/.terraform.d/plugins/local/default/slack/0.0.2/darwin_arm64/terraform-provider-slack
test:
go test $(TEST) -timeout=30s -parallel=4 -v
testacc:
TF_ACC=1 TF_SCHEMA_PANIC_ON_ERROR=1 go test $(TEST) -v $(TESTARGS) -timeout 240m -ldflags="-X=github.com/terraform-providers/terraform-provider-slack/version.ProviderVersion=acc"
fmt:
gofmt -s -w $(GO_FILES)
fmtcheck:
@sh "$(PWD)/scripts/gofmtcheck.sh"
tools:
GO111MODULE=on go install github.com/bflad/tfproviderlint/cmd/tfproviderlint
GO111MODULE=on go install github.com/client9/misspell/cmd/misspell
GO111MODULE=on go install github.com/golangci/golangci-lint/cmd/golangci-lint
vendor:
GO111MODULE=on go mod vendor
.PHONY: build install test testacc fmt fmtcheck tools vendor