forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
166 lines (156 loc) · 5.9 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
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 = "@alpine-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",
],
)
prow_image(
name = "image",
base = ":spyglass-lenses",
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",
],
)
go_binary(
name = "deck",
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/flagutil:go_default_library",
"//prow/github:go_default_library",
"//prow/githuboauth:go_default_library",
"//prow/pluginhelp:go_default_library",
"//prow/spyglass/lenses/buildlog: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",
"//vendor/github.com/google/go-github/github:go_default_library",
"//vendor/github.com/gorilla/sessions:go_default_library",
"//vendor/github.com/sirupsen/logrus:go_default_library",
"//vendor/golang.org/x/oauth2:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/equality:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/labels:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/diff:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library",
"//vendor/k8s.io/client-go/testing:go_default_library",
"//vendor/sigs.k8s.io/yaml: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/errorutil:go_default_library",
"//prow/flagutil:go_default_library",
"//prow/gcsupload:go_default_library",
"//prow/github:go_default_library",
"//prow/githuboauth: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/pod-utils/downwardapi:go_default_library",
"//prow/pod-utils/gcs:go_default_library",
"//prow/prstatus:go_default_library",
"//prow/spyglass:go_default_library",
"//prow/spyglass/lenses:go_default_library",
"//prow/spyglass/lenses/buildlog:go_default_library",
"//prow/spyglass/lenses/coverage: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",
"//vendor/cloud.google.com/go/storage:go_default_library",
"//vendor/github.com/NYTimes/gziphandler:go_default_library",
"//vendor/github.com/gorilla/csrf:go_default_library",
"//vendor/github.com/gorilla/sessions:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
"//vendor/github.com/sirupsen/logrus:go_default_library",
"//vendor/golang.org/x/oauth2:go_default_library",
"//vendor/golang.org/x/oauth2/github:go_default_library",
"//vendor/google.golang.org/api/iterator:go_default_library",
"//vendor/google.golang.org/api/option:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library",
"//vendor/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library",
"//vendor/sigs.k8s.io/yaml: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"],
)