forked from dell/terraform-provider-ome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 664 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
38
39
40
41
lint:
echo "Running staticcheck"
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck ./...
golint ./...
vet:
echo "running go vet"
go vet
fmt:
go fmt ./...
code_check: lint vet fmt
unit_test:
echo "Running unit tests"
go test -v ./clients -cover -timeout 60m
integration_test:
echo "Running integration test"
TF_ACC=1 go test -v ./ome -timeout 5h -cover
test: unit_test integration_test
generate:
go install
go generate
download:
go mod download
build: download
mkdir -p out
go build -v -o ./out
all: download code-check test compile
sweep :
go test -v ./ome -timeout 5h -sweep=all