-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
50 lines (38 loc) · 1.16 KB
/
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
42
43
44
45
46
47
48
49
50
# Export GO111MODULE=on to enable project to be built from within GOPATH/src
export GO111MODULE=on
GO_PACKAGES=$(shell go list ./... | grep -v vendor)
.PHONY: lint \
deps-update \
vet
.PHONY: mockgen
mockgen: ## Install mockgen locally.
go install go.uber.org/mock/[email protected]
.PHONY: generate
generate: mockgen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
go generate ./...
vet:
go vet ${GO_PACKAGES}
lint:
@echo "Running go lint"
scripts/golangci-lint.sh
deps-update:
go mod tidy && \
go mod vendor
install-ginkgo:
scripts/install-ginkgo.sh
build-container-image:
@echo "Building container image"
podman build -t nvidiagpu:latest -f Containerfile
install: deps-update install-ginkgo
@echo "Installing needed dependencies"
TEST ?= ...
.PHONY: unit-test
unit-test:
go test github.com/rh-ecosystem-edge/nvidia-ci/$(TEST)
run-tests:
@echo "Executing nvidiagpu test-runner script"
scripts/test-runner.sh
test-bm-arm-deployment:
/bin/bash tests/gpu-operator-arm-bm/uninstall-gpu-operator.sh
/bin/bash tests/gpu-operator-arm-bm/install-gpu-operator.sh
/bin/bash tests/gpu-operator-arm-bm/areweok.sh