-
Notifications
You must be signed in to change notification settings - Fork 138
/
Makefile
42 lines (32 loc) · 1.32 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
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 update-labels $(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:
$(bazelbin) run //:gazelle
gazelle-update-repos:
$(bazelbin) run //:gazelle -- update-repos -from_file=go.mod
install-bazelisk:
go get -u github.com/bazelbuild/bazelisk
test:
$(bazelbin) build //external-plugins/... //releng/... //robots/... //github/ci/services/...
$(bazelbin) test //external-plugins/... //releng/... //robots/...
update-labels:
./hack/labels/update.sh