github.com/yrj2011/jx-test-infra@v0.0.0-20190529031832-7a2065ee98eb/triage/BUILD.bazel (about) 1 load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test") 2 3 py_test( 4 name = "summarize_test", 5 srcs = [ 6 "berghelroach.py", 7 "summarize.py", 8 "summarize_test.py", 9 ], 10 ) 11 12 py_test( 13 name = "berghelroach_test", 14 srcs = [ 15 "berghelroach.py", 16 "berghelroach_test.py", 17 ], 18 ) 19 20 filegroup( 21 name = "node_modules", 22 srcs = glob(["node_modules/**/*"]), 23 visibility = ["//visibility:public"], 24 ) 25 26 jasmine_node_test( 27 name = "script_test", 28 srcs = ["script_test.js"], 29 data = ["js-srcs"], 30 node_modules = ":node_modules", 31 ) 32 33 filegroup( 34 name = "js-srcs", 35 srcs = glob(["*.js"]), 36 ) 37 38 filegroup( 39 name = "package-srcs", 40 srcs = glob(["**"]), 41 tags = ["automanaged"], 42 visibility = ["//visibility:private"], 43 ) 44 45 filegroup( 46 name = "all-srcs", 47 srcs = [":package-srcs"], 48 tags = ["automanaged"], 49 visibility = ["//visibility:public"], 50 )