-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGNUmakefile
More file actions
42 lines (29 loc) · 823 Bytes
/
GNUmakefile
File metadata and controls
42 lines (29 loc) · 823 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
38
39
40
41
42
default: fmt lint install generate
build:
go build -v ./...
install: build
go install -v ./...
lint:
golangci-lint run
generate:
cd tools; go generate ./...
fmt:
gofmt -s -w -e .
test:
go test -v -cover -timeout=120s -parallel=10 ./...
testacc-up: | ssh-keys
docker compose up -d
./scripts/create-bastion-account.sh
testacc-down:
docker compose down --volumes
testacc:
TF_ACC=1 go test -v -cover -timeout 120m ./...
ssh-keys:
./scripts/create-ssh-keys.sh
clean: testacc-down
@rm -rf ssh-keys/
local-install:
go install -v ./...
mkdir -p ~/.terraform.d/plugins/registry.opentofu.org/adfinis/bastion/1.0.0/linux_amd64
mv ~/go/bin/terraform-provider-bastion ~/.terraform.d/plugins/registry.opentofu.org/adfinis/bastion/1.0.0/linux_amd64
.PHONY: fmt lint test testacc build install generate testacc