forked from keycloak/terraform-provider-keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
37 lines (26 loc) · 813 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
TEST?=$$(go list ./... |grep -v 'vendor')
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
MAKEFLAGS += --silent
build:
go build -o terraform-provider-keycloak
build-example: build
mkdir -p example/.terraform/plugins/darwin_amd64
cp terraform-provider-keycloak example/.terraform/plugins/darwin_amd64/
local: deps
docker-compose up --build -d
./scripts/wait-for-local-keycloak.sh
./scripts/create-terraform-client.sh
deps:
./scripts/check-deps.sh
fmt:
gofmt -w -s $(GOFMT_FILES)
test: fmtcheck vet
go test $(TEST)
testacc: fmtcheck vet
TF_ACC=1 go test -timeout 20m $(TEST) -v $(TESTARGS)
fmtcheck:
lineCount=$(shell gofmt -l -s $(GOFMT_FILES) | wc -l | tr -d ' ') && exit $$lineCount
vet:
go vet ./...
user-federation-example:
cd custom-user-federation-example && ./gradlew shadowJar