-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
37 lines (29 loc) · 908 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
30
31
32
33
34
35
36
37
default: testacc
################################################################################
# Development
################################################################################
# Run acceptance tests
.PHONY: testacc
testacc:
TF_ACC=1 go test ./... -v $(TESTARGS) -timeout 2m
.PHONY: debug
debug:
TF_ACC=1 dlv test ./internal/provider -v $(TESTARGS) -timeout 2m
# Installs tools as defined in tools/tools.go
.PHONY: install
install:
go install
.PHONY: build
build:
go build -o bin/terraform-provider-incident .
################################################################################
# Clients
################################################################################
.PHONY: internal/client/client.gen.go
internal/client/client.gen.go:
rm -rf $@
oapi-codegen \
--generate types,client \
--package client \
--o $@ \
internal/apischema/openapi3-secret.json