-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (32 loc) · 1 KB
/
Makefile
File metadata and controls
45 lines (32 loc) · 1 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
default: build
build:
go build -o terraform-provider-appwrite
install: build
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/appwrite/appwrite/0.1.0/$$(go env GOOS)_$$(go env GOARCH)
cp terraform-provider-appwrite ~/.terraform.d/plugins/registry.terraform.io/appwrite/appwrite/0.1.0/$$(go env GOOS)_$$(go env GOARCH)/
test:
go test ./... -v -count=1 -timeout 10m
acceptance-test:
TF_ACC=1 go test ./... -v -count=1 $(TESTARGS) -timeout 120m
sweep:
@echo "WARNING: This will destroy infrastructure. Use only in development."
go test ./... -v -sweep=all $(SWEEPARGS) -timeout 60m
test-compile:
go test -c ./... -o /dev/null
vet:
go vet ./...
fmt:
gofmt -s -w .
fmt-check:
@gofmt_output=$$(gofmt -l .); \
if [ -n "$$gofmt_output" ]; then \
echo "Files not formatted:"; \
echo "$$gofmt_output"; \
exit 1; \
fi
lint: vet fmt-check
clean:
rm -f terraform-provider-appwrite
docs:
go generate ./...
.PHONY: build install test acceptance-test sweep test-compile vet fmt fmt-check lint clean docs