-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGNUmakefile
More file actions
53 lines (38 loc) · 1.34 KB
/
Copy pathGNUmakefile
File metadata and controls
53 lines (38 loc) · 1.34 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
GOPATH ?= $(HOME)/go
default: fmt lint install generate
build:
go build -v ./...
install: build
go install -v ./...
lint:
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.3 run
generate:
cd tools; go generate ./...
fmt:
gofmt -s -w -e .
test:
go test -v -cover -timeout=120s -parallel=10 ./...
# Run all acceptance tests (requires FLASHDUTY_API_KEY)
testacc:
TF_ACC=1 go test -v -cover -timeout 120m ./internal/provider/...
# Run a specific acceptance test
# Usage: make testacc-run TEST=TestAccTeamResource
testacc-run:
TF_ACC=1 go test -v -timeout 30m -run $(TEST) ./internal/provider/...
# Test data sources only
testacc-datasources:
TF_ACC=1 go test -v -timeout 30m -run 'TestAcc.*DataSource' ./internal/provider/...
# Test resources only
testacc-resources:
TF_ACC=1 go test -v -timeout 30m -run 'TestAcc.*Resource' ./internal/provider/...
# Quick smoke test - tests basic team and channel operations
testacc-smoke:
TF_ACC=1 go test -v -timeout 10m -run 'TestAccTeam|TestAccChannel' ./internal/provider/...
# Build and install provider for local testing
local: build
mkdir -p $(GOPATH)/bin
cp terraform-provider-flashduty $(GOPATH)/bin/
clean:
rm -f terraform-provider-flashduty
go clean
.PHONY: fmt lint test testacc testacc-run testacc-datasources testacc-resources testacc-smoke build install generate local clean