BUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "exp.go",
  10. "service.go",
  11. ],
  12. importpath = "go-common/app/job/live-userexp/service",
  13. tags = ["automanaged"],
  14. visibility = ["//visibility:public"],
  15. deps = [
  16. "//app/job/live-userexp/conf:go_default_library",
  17. "//app/job/live-userexp/dao:go_default_library",
  18. "//app/job/live-userexp/model:go_default_library",
  19. "//library/log:go_default_library",
  20. "//library/queue/databus:go_default_library",
  21. ],
  22. )
  23. go_test(
  24. name = "go_default_test",
  25. srcs = ["exp_test.go"],
  26. embed = [":go_default_library"],
  27. rundir = ".",
  28. tags = ["automanaged"],
  29. deps = [
  30. "//app/job/live-userexp/conf:go_default_library",
  31. "//app/job/live-userexp/model:go_default_library",
  32. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  33. ],
  34. )
  35. filegroup(
  36. name = "package-srcs",
  37. srcs = glob(["**"]),
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:private"],
  40. )
  41. filegroup(
  42. name = "all-srcs",
  43. srcs = [":package-srcs"],
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:public"],
  46. )