generated from hashicorp/terraform-provider-scaffolding-framework
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
GNUmakefile
26 lines (21 loc) · 810 Bytes
/
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
GO_VER ?= go
SWEEP ?= all
SWEEP_TIMEOUT ?= 360m
default: testacc
.PHONY: deps
deps:
$(GO_VER) mod download
# Run acceptance tests
.PHONY: testacc
testacc:
TF_ACC=1 $(GO_VER) test ./... -v $(TESTARGS) -timeout 120m
.PHONY: sweep
sweep: ## Run sweepers
# make sweep SWEEPARGS=-sweep-run=openai_project
# set SWEEPARGS=-sweep-allow-failures to continue after first failure
@echo "WARNING: This will destroy infrastructure. Use only in development accounts."
$(GO_VER) test ./... -v -sweep=$(SWEEP) $(SWEEPARGS) -timeout $(SWEEP_TIMEOUT)
.PHONY: sweeper
sweeper: ## Run sweepers with failures allowed
@echo "WARNING: This will destroy infrastructure. Use only in development accounts."
$(GO_VER) test ./... -v -tags=sweep -sweep=$(SWEEP) -sweep-allow-failures -timeout $(SWEEP_TIMEOUT)