BUILD 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = [
  10. "auto_case_test.go",
  11. "blocked_test.go",
  12. "case_mc_test.go",
  13. "case_test.go",
  14. "dao_test.go",
  15. "depend_test.go",
  16. "jury_test.go",
  17. "memcache_test.go",
  18. "mysql_test.go",
  19. "redis_test.go",
  20. "reply_test.go",
  21. ],
  22. embed = [":go_default_library"],
  23. rundir = ".",
  24. tags = ["automanaged"],
  25. deps = [
  26. "//app/job/main/credit/conf:go_default_library",
  27. "//app/job/main/credit/model:go_default_library",
  28. "//library/time:go_default_library",
  29. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  30. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  31. ],
  32. )
  33. go_library(
  34. name = "go_default_library",
  35. srcs = [
  36. "auto_case.go",
  37. "blocked.go",
  38. "case.go",
  39. "case_mc.go",
  40. "dao.go",
  41. "depend.go",
  42. "jury.go",
  43. "memcache.go",
  44. "mysql.go",
  45. "redis.go",
  46. "reply.go",
  47. ],
  48. importpath = "go-common/app/job/main/credit/dao",
  49. tags = ["automanaged"],
  50. visibility = ["//visibility:public"],
  51. deps = [
  52. "//app/job/main/credit/conf:go_default_library",
  53. "//app/job/main/credit/model:go_default_library",
  54. "//library/cache/memcache:go_default_library",
  55. "//library/cache/redis:go_default_library",
  56. "//library/database/sql:go_default_library",
  57. "//library/ecode:go_default_library",
  58. "//library/log:go_default_library",
  59. "//library/net/http/blademaster:go_default_library",
  60. "//library/time:go_default_library",
  61. "//library/xstr:go_default_library",
  62. ],
  63. )
  64. filegroup(
  65. name = "package-srcs",
  66. srcs = glob(["**"]),
  67. tags = ["automanaged"],
  68. visibility = ["//visibility:private"],
  69. )
  70. filegroup(
  71. name = "all-srcs",
  72. srcs = [":package-srcs"],
  73. tags = ["automanaged"],
  74. visibility = ["//visibility:public"],
  75. )