-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 748 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 748 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
default: install generate
generate:
go generate ./...
install: tidy
go install .
tidy:
go mod tidy
build: tidy
go build -v ./...
unittest: build
go test -v $$(go list ./... | grep -v test | xargs)
teste2e: testrelease
go test -v -timeout 10m ./test
tfapply: install
cd ./test-tf-files && terraform apply
tfplan: install
cd ./test-tf-files && terraform plan
tfshow: install
cd ./test-tf-files && terraform show
strelease:
goreleaser build --single-target --snapshot --clean
testrelease:
@DIR="./test-reg/registry.terraform.io/beyondtrust/sra/1.0.0/`go env GOOS`_`go env GOARCH`"; \
rm -rf "./test-reg"; \
mkdir -p $${DIR}; \
goreleaser build --single-target --snapshot --clean --output $${DIR}/terraform-provider-sra_v1.0.0