add genrule for test bindata

pull/6/head
Mike Danese 2016-10-22 09:54:15 -07:00
parent 1cd2968917
commit 56200d16a3
6 changed files with 64 additions and 2 deletions

8
docs/user-guide/BUILD Normal file
View File

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
filegroup(
name = "sources",
srcs = glob([
"**/*",
]),
)

View File

@ -10,3 +10,10 @@ filegroup(
"pod",
],
)
filegroup(
name = "sources",
srcs = glob([
"**/*",
]),
)

View File

@ -12,6 +12,30 @@ load(
go_library(
name = "go_default_library",
srcs = ["main.go"],
tags = ["automanaged"],
srcs = [
"main.go",
":bindata",
],
)
genrule(
name = "bindata",
srcs = [
"//examples:sources",
"//docs/user-guide: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",
],
)

View File

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
filegroup(
name = "sources",
srcs = glob([
"**/*",
]),
)

7
test/fixtures/BUILD vendored
View File

@ -8,3 +8,10 @@ filegroup(
"**/*.json",
]),
)
filegroup(
name = "sources",
srcs = glob([
"**/*",
]),
)

8
test/images/BUILD Normal file
View File

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
filegroup(
name = "sources",
srcs = glob([
"**/*",
]),
)