BUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. "account_test.go",
  11. "dao_test.go",
  12. "memcache_test.go",
  13. "mysql_test.go",
  14. "redis_test.go",
  15. ],
  16. embed = [":go_default_library"],
  17. rundir = ".",
  18. tags = ["automanaged"],
  19. deps = [
  20. "//app/job/main/spy/conf:go_default_library",
  21. "//app/job/main/spy/model:go_default_library",
  22. "//library/database/sql:go_default_library",
  23. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  24. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  25. ],
  26. )
  27. go_library(
  28. name = "go_default_library",
  29. srcs = [
  30. "account.go",
  31. "dao.go",
  32. "hbase.go",
  33. "memcache.go",
  34. "mysql.go",
  35. "redis.go",
  36. ],
  37. importpath = "go-common/app/job/main/spy/dao",
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. deps = [
  41. "//app/job/main/spy/conf:go_default_library",
  42. "//app/job/main/spy/model:go_default_library",
  43. "//library/cache/memcache:go_default_library",
  44. "//library/cache/redis:go_default_library",
  45. "//library/database/hbase.v2:go_default_library",
  46. "//library/database/sql:go_default_library",
  47. "//library/log:go_default_library",
  48. "//library/net/http/blademaster:go_default_library",
  49. "//vendor/github.com/pkg/errors:go_default_library",
  50. "//vendor/github.com/tsuna/gohbase/hrpc:go_default_library",
  51. ],
  52. )
  53. filegroup(
  54. name = "package-srcs",
  55. srcs = glob(["**"]),
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:private"],
  58. )
  59. filegroup(
  60. name = "all-srcs",
  61. srcs = [":package-srcs"],
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:public"],
  64. )