github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/robots/issue-creator/sources/BUILD.bazel (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3 go_library( 4 name = "go_default_library", 5 srcs = [ 6 "flakyjob-reporter.go", 7 "triage-filer.go", 8 ], 9 importpath = "k8s.io/test-infra/robots/issue-creator/sources", 10 visibility = ["//visibility:public"], 11 deps = [ 12 "//robots/issue-creator/creator:go_default_library", 13 "//vendor/github.com/golang/glog:go_default_library", 14 "//vendor/github.com/google/go-github/github:go_default_library", 15 ], 16 ) 17 18 go_test( 19 name = "go_default_test", 20 srcs = [ 21 "flakyjob-reporter_test.go", 22 "triage-filer_test.go", 23 ], 24 embed = [":go_default_library"], 25 deps = [ 26 "//robots/issue-creator/creator:go_default_library", 27 "//robots/issue-creator/testowner:go_default_library", 28 "//vendor/github.com/google/go-github/github:go_default_library", 29 ], 30 ) 31 32 filegroup( 33 name = "package-srcs", 34 srcs = glob(["**"]), 35 tags = ["automanaged"], 36 visibility = ["//visibility:private"], 37 ) 38 39 filegroup( 40 name = "all-srcs", 41 srcs = [":package-srcs"], 42 tags = ["automanaged"], 43 visibility = ["//visibility:public"], 44 )