forked from operator-framework/operator-marketplace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (39 loc) · 1.07 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
51
52
53
# OpenShift Marketplace - Build and Test
SHELL := /bin/bash
PKG := github.com/operator-framework/operator-marketplace/pkg
MOCKS_DIR := ./pkg/mocks
CONTROLLER_RUNTIME_PKG := sigs.k8s.io/controller-runtime/pkg
OPERATORSOURCE_MOCK_PKG := operatorsource_mocks
# If the GOBIN environment variable is set, 'go install' will install the
# commands to the directory it names, otherwise it will default of $GOPATH/bin.
# GOBIN must be an absolute path.
ifeq ($(GOBIN),)
mockgen := $(GOPATH)/bin/mockgen
else
mockgen := $(GOBIN)/mockgen
endif
all: build
build: osbs-build
osbs-build:
./build/build.sh
unit: unit-test
unit-test:
go test -v ./pkg/...
e2e-test:
./scripts/e2e-tests.sh
e2e-test-local:
./scripts/e2e-tests-local.sh
e2e-job:
./scripts/run-e2e-job.sh
e2e-test-minikube:
TEST_NAMESPACE=minikube ./scripts/e2e-tests.sh
install-olm-crds:
kubectl apply -f https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.17.0/crds.yaml
.PHONY: vendor
vendor:
go mod tidy
go mod vendor
go mod verify
.PHONY: manifests
manifests:
./scripts/update-manifests.sh