Merge pull request #37114 from mikedanese/fix-bzl

Automatic merge from submit-queue

	revert revert of test/e2e/generated/BUILD
This commit is contained in:
Kubernetes Submit Queue 2016-11-18 17:03:38 -08:00 committed by GitHub
commit fa0eb19bcc
2 changed files with 27 additions and 3 deletions

View File

@ -210,7 +210,10 @@ go_library(
], ],
) )
go_test( # this is a private library until we can support building the
# test binary
# TODO(mikedanese): fix @io_bazelbuild/rules_go
go_library(
name = "go_default_test", name = "go_default_test",
srcs = [ srcs = [
"e2e_test.go", "e2e_test.go",
@ -218,6 +221,7 @@ go_test(
], ],
library = "go_default_library", library = "go_default_library",
tags = ["automanaged"], tags = ["automanaged"],
visibility = ["//visibility:private"],
deps = [ deps = [
"//pkg/api:go_default_library", "//pkg/api:go_default_library",
"//pkg/client/clientset_generated/internalclientset:go_default_library", "//pkg/client/clientset_generated/internalclientset:go_default_library",

View File

@ -13,8 +13,28 @@ load(
go_library( go_library(
name = "go_default_library", name = "go_default_library",
srcs = [ srcs = [
"bindata.go",
"main.go", "main.go",
":bindata",
],
)
genrule(
name = "bindata",
srcs = [
"//examples:sources",
"//test/images:sources",
"//test/fixtures:sources",
"//test/e2e/testing-manifests:sources",
],
outs = ["bindata.go"],
cmd = """
$(location //vendor:github.com/jteeuwen/go-bindata/go-bindata) \
-nometadata -o "$(OUTS)" -pkg generated \
-prefix $$(pwd) \
-ignore .jpg -ignore .png -ignore .md \
$(SRCS)
""",
tools = [
"//vendor:github.com/jteeuwen/go-bindata/go-bindata",
], ],
tags = ["automanaged"],
) )