BUILD 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. "appeal.go",
  10. "buss_attr.go",
  11. "chall.go",
  12. "dao.go",
  13. "notify.go",
  14. "redis.go",
  15. "search.go",
  16. ],
  17. importpath = "go-common/app/job/main/workflow/dao",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//app/admin/main/workflow/model/param:go_default_library",
  22. "//app/job/main/workflow/conf:go_default_library",
  23. "//app/job/main/workflow/model:go_default_library",
  24. "//library/cache/redis:go_default_library",
  25. "//library/database/elastic:go_default_library",
  26. "//library/database/orm:go_default_library",
  27. "//library/ecode:go_default_library",
  28. "//library/log:go_default_library",
  29. "//library/net/http/blademaster:go_default_library",
  30. "//library/queue/databus/report:go_default_library",
  31. "//vendor/github.com/jinzhu/gorm:go_default_library",
  32. ],
  33. )
  34. go_test(
  35. name = "go_default_test",
  36. srcs = [
  37. "appeal_test.go",
  38. "buss_attr_test.go",
  39. "chall_test.go",
  40. "dao_test.go",
  41. "notify_test.go",
  42. "redis_test.go",
  43. "search_test.go",
  44. ],
  45. embed = [":go_default_library"],
  46. rundir = ".",
  47. tags = ["automanaged"],
  48. deps = [
  49. "//app/admin/main/workflow/model/param:go_default_library",
  50. "//app/job/main/workflow/conf:go_default_library",
  51. "//app/job/main/workflow/model:go_default_library",
  52. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  53. ],
  54. )
  55. filegroup(
  56. name = "package-srcs",
  57. srcs = glob(["**"]),
  58. tags = ["automanaged"],
  59. visibility = ["//visibility:private"],
  60. )
  61. filegroup(
  62. name = "all-srcs",
  63. srcs = [":package-srcs"],
  64. tags = ["automanaged"],
  65. visibility = ["//visibility:public"],
  66. )