forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
200 lines (188 loc) · 6.87 KB
/
BUILD.bazel
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
package(default_visibility = ["//visibility:public"])
load("@io_bazel_rules_docker//container:image.bzl", "container_image")
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
load("//prow:def.bzl", "prow_image")
filegroup(
name = "templates",
srcs = glob(["template/**/*"]),
)
container_image(
name = "asset-base",
base = "@git-base//image",
# With paths relative to the current directory.
data_path = ".",
# Add files under into the root directory.
directory = "/",
files = [
":templates",
"//prow/cmd/deck/static",
],
)
NAME = "deck"
prow_image(
name = "image",
base = ":spyglass-lenses",
component = NAME,
visibility = ["//visibility:public"],
)
container_image(
name = "spyglass-lenses",
base = ":asset-base",
data_path = "/prow/spyglass/lenses",
directory = "/lenses",
files = [
"//prow/spyglass/lenses:resources",
"//prow/spyglass/lenses:templates",
],
)
sh_test(
name = "validate-static-files",
srcs = [
"validate-static-files.sh",
],
args = [
"$(locations :templates)",
"$(locations //prow/cmd/deck/static)",
],
data = [
":templates",
"//prow/cmd/deck/static",
],
)
go_binary(
name = NAME,
data = [
":templates",
"//prow/cmd/deck/static",
"//prow/spyglass/lenses:resources",
"//prow/spyglass/lenses:templates",
],
embed = [":go_default_library"],
pure = "on",
)
go_test(
name = "go_default_test",
srcs = [
"badge_test.go",
"job_history_test.go",
"main_test.go",
"pr_history_test.go",
"tide_test.go",
],
embed = [":go_default_library"],
deps = [
"//prow/apis/prowjobs/v1:go_default_library",
"//prow/client/clientset/versioned/fake:go_default_library",
"//prow/config:go_default_library",
"//prow/deck/jobs:go_default_library",
"//prow/flagutil:go_default_library",
"//prow/github:go_default_library",
"//prow/github/fakegithub:go_default_library",
"//prow/githuboauth:go_default_library",
"//prow/io:go_default_library",
"//prow/io/providers:go_default_library",
"//prow/pluginhelp:go_default_library",
"//prow/plugins:go_default_library",
"//prow/spyglass/lenses/buildlog:go_default_library",
"//prow/spyglass/lenses/common:go_default_library",
"//prow/spyglass/lenses/junit:go_default_library",
"//prow/spyglass/lenses/metadata:go_default_library",
"//prow/tide:go_default_library",
"//prow/tide/history:go_default_library",
"@com_github_fsouza_fake_gcs_server//fakestorage:go_default_library",
"@com_github_google_go_cmp//cmp:go_default_library",
"@com_github_gorilla_sessions//:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@io_k8s_api//core/v1:go_default_library",
"@io_k8s_apimachinery//pkg/api/equality:go_default_library",
"@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library",
"@io_k8s_apimachinery//pkg/util/diff:go_default_library",
"@io_k8s_apimachinery//pkg/util/sets:go_default_library",
"@io_k8s_sigs_controller_runtime//pkg/client:go_default_library",
"@io_k8s_sigs_yaml//:go_default_library",
"@org_golang_x_oauth2//:go_default_library",
],
)
go_library(
name = "go_default_library",
srcs = [
"badge.go",
"job_history.go",
"main.go",
"pluginhelp.go",
"pr_history.go",
"templates.go",
"tide.go",
],
importpath = "k8s.io/test-infra/prow/cmd/deck",
deps = [
"//prow/apis/prowjobs/v1:go_default_library",
"//prow/client/clientset/versioned/typed/prowjobs/v1:go_default_library",
"//prow/cmd/deck/version:go_default_library",
"//prow/config:go_default_library",
"//prow/config/secret:go_default_library",
"//prow/deck/jobs:go_default_library",
"//prow/flagutil:go_default_library",
"//prow/gcsupload:go_default_library",
"//prow/git/v2:go_default_library",
"//prow/github:go_default_library",
"//prow/githuboauth:go_default_library",
"//prow/interrupts:go_default_library",
"//prow/io:go_default_library",
"//prow/io/providers:go_default_library",
"//prow/kube:go_default_library",
"//prow/logrusutil:go_default_library",
"//prow/metrics:go_default_library",
"//prow/pjutil:go_default_library",
"//prow/pluginhelp:go_default_library",
"//prow/plugins:go_default_library",
"//prow/plugins/trigger:go_default_library",
"//prow/pod-utils/downwardapi:go_default_library",
"//prow/pod-utils/gcs:go_default_library",
"//prow/prstatus:go_default_library",
"//prow/simplifypath:go_default_library",
"//prow/spyglass:go_default_library",
"//prow/spyglass/api:go_default_library",
"//prow/spyglass/lenses:go_default_library",
"//prow/spyglass/lenses/buildlog:go_default_library",
"//prow/spyglass/lenses/common:go_default_library",
"//prow/spyglass/lenses/coverage:go_default_library",
"//prow/spyglass/lenses/junit:go_default_library",
"//prow/spyglass/lenses/links:go_default_library",
"//prow/spyglass/lenses/metadata:go_default_library",
"//prow/spyglass/lenses/podinfo:go_default_library",
"//prow/spyglass/lenses/restcoverage:go_default_library",
"//prow/tide:go_default_library",
"//prow/tide/history:go_default_library",
"@com_github_gorilla_csrf//:go_default_library",
"@com_github_gorilla_sessions//:go_default_library",
"@com_github_nytimes_gziphandler//:go_default_library",
"@com_github_prometheus_client_golang//prometheus:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@io_k8s_api//core/v1:go_default_library",
"@io_k8s_apimachinery//pkg/api/errors:go_default_library",
"@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library",
"@io_k8s_apimachinery//pkg/util/errors:go_default_library",
"@io_k8s_apimachinery//pkg/util/sets:go_default_library",
"@io_k8s_client_go//kubernetes/typed/core/v1:go_default_library",
"@io_k8s_sigs_controller_runtime//pkg/client:go_default_library",
"@io_k8s_sigs_controller_runtime//pkg/manager:go_default_library",
"@io_k8s_sigs_yaml//:go_default_library",
"@org_golang_x_oauth2//:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//prow/cmd/deck/static:all-srcs",
"//prow/cmd/deck/version:all-srcs",
],
tags = ["automanaged"],
)