BUILD 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "dao.go",
  11. "message.go",
  12. "mysql.go",
  13. "push.go",
  14. ],
  15. importpath = "go-common/app/job/main/web-goblin/dao/esports",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/job/main/web-goblin/conf:go_default_library",
  20. "//app/job/main/web-goblin/model/esports:go_default_library",
  21. "//app/service/main/archive/api:go_default_library",
  22. "//library/database/sql:go_default_library",
  23. "//library/ecode:go_default_library",
  24. "//library/log:go_default_library",
  25. "//library/net/http/blademaster:go_default_library",
  26. "//library/xstr:go_default_library",
  27. "//vendor/github.com/pkg/errors:go_default_library",
  28. ],
  29. )
  30. filegroup(
  31. name = "package-srcs",
  32. srcs = glob(["**"]),
  33. tags = ["automanaged"],
  34. visibility = ["//visibility:private"],
  35. )
  36. filegroup(
  37. name = "all-srcs",
  38. srcs = [":package-srcs"],
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:public"],
  41. )
  42. go_test(
  43. name = "go_default_test",
  44. srcs = [
  45. "dao_test.go",
  46. "message_test.go",
  47. "mysql_test.go",
  48. "push_test.go",
  49. ],
  50. embed = [":go_default_library"],
  51. rundir = ".",
  52. tags = ["automanaged"],
  53. deps = [
  54. "//app/job/main/web-goblin/conf:go_default_library",
  55. "//app/job/main/web-goblin/model/esports:go_default_library",
  56. "//app/service/main/archive/api:go_default_library",
  57. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  58. ],
  59. )