BUILD 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. "dao.go",
  10. "mc_level.go",
  11. ],
  12. importpath = "go-common/app/job/live-userexp/dao",
  13. tags = ["automanaged"],
  14. visibility = ["//visibility:public"],
  15. deps = [
  16. "//app/job/live-userexp/conf:go_default_library",
  17. "//app/job/live-userexp/model:go_default_library",
  18. "//library/cache/memcache:go_default_library",
  19. "//library/database/sql:go_default_library",
  20. "//library/log:go_default_library",
  21. ],
  22. )
  23. go_test(
  24. name = "go_default_test",
  25. srcs = ["mc_level_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. "//library/log:go_default_library",
  33. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  34. ],
  35. )
  36. filegroup(
  37. name = "package-srcs",
  38. srcs = glob(["**"]),
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:private"],
  41. )
  42. filegroup(
  43. name = "all-srcs",
  44. srcs = [":package-srcs"],
  45. tags = ["automanaged"],
  46. visibility = ["//visibility:public"],
  47. )