bazel: Add targets for cross-package testdata

This commit is contained in:
Justin Santa Barbara 2017-10-03 10:54:46 -04:00
parent b63f4d2dbe
commit 57ceb5dbab
3 changed files with 17 additions and 0 deletions

8
channels/BUILD.bazel Normal file
View File

@ -0,0 +1,8 @@
filegroup(
name = "channeldata",
srcs = [
"alpha",
"stable",
],
visibility = ["//visibility:public"],
)

View File

@ -126,6 +126,10 @@ go_test(
"delete_confirm_test.go",
"integration_test.go",
],
data = [
"//channels:channeldata", # keep
"//tests/integration:exported_testdata", # keep
],
library = ":go_default_library",
deps = [
"//cmd/kops/util:go_default_library",

View File

@ -0,0 +1,5 @@
filegroup(
name = "exported_testdata",
srcs = glob(["**"]),
visibility = ["//visibility:public"],
)