-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathGNUmakefile
More file actions
23 lines (18 loc) · 708 Bytes
/
GNUmakefile
File metadata and controls
23 lines (18 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
default: test
LOCAL_TAG=$(shell git describe --tags)
GOOS=$(shell go env GOOS)
GOARCH=$(shell go env .GOARCH)
# Run local unit tests (which use the acceptance test suite)
# @NOTE these are run with the provider/resources in testing mode
.PHONY: testacc
testacc:
TF_ACC=1 go test ./... -v $(TESTARGS) -timeout 120m
# Lint by running golangci-lint in a docker container
.PHONY: lint
lint:
docker run -ti --rm -v "$(CURDIR):/data" -w "/data" golangci/golangci-lint:latest golangci-lint run
# Local install of the plugin
# @SEE README.md on how to use the locally built plugin
.PHONY: local
local:
GORELEASER_CURRENT_TAG="$(LOCAL_TAG)" goreleaser build --clean --single-target --skip=validate --snapshot