forked from kubevirt/project-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 1.09 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
limiter := limiter
flake-report-writer := robots/cmd/flake-report-writer
flake-issue-creator := robots/cmd/flake-issue-creator
querier := robots/cmd/release-querier
kubevirtci := robots/cmd/kubevirtci-bumper
bazelbin := bazelisk
.PHONY: all clean deps-update gazelle-update-repos $(limiter) $(flake-report-writer) $(querier) $(kubevirtci) $(flake-issue-creator)
all: deps-update $(limiter) $(flake-report-writer) $(querier) $(kubevirtci) $(flake-issue-creator)
clean:
$(bazelbin) clean
$(limiter) $(flake-report-writer) $(querier) $(kubevirtci) $(flake-issue-creator): deps-update
$(MAKE) --directory=$@
bazel-build-all:
$(bazelbin) build //limiter:go_default_library //releng/... //robots/... //github/ci/services/...
deps-update:
export GO111MODULE=on
go get ./...
go mod tidy
go mod vendor
sed -i "s|^.*data = \[\"//prow/plugins:config-src\"\],||g" vendor/k8s.io/test-infra/pkg/genyaml/BUILD.bazel
$(bazelbin) run //:gazelle
gazelle:
bazel run //:gazelle
gazelle-update-repos:
bazel run //:gazelle -- update-repos -from_file=go.mod
install-bazelisk:
go get -u github.com/bazelbuild/bazelisk