BUILD 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. "pipeline_test.go",
  11. "service_test.go",
  12. ],
  13. embed = [":go_default_library"],
  14. rundir = ".",
  15. tags = ["automanaged"],
  16. deps = [
  17. "//app/admin/ep/saga/conf:go_default_library",
  18. "//app/admin/ep/saga/model:go_default_library",
  19. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  20. "//vendor/github.com/xanzy/go-gitlab:go_default_library",
  21. ],
  22. )
  23. go_library(
  24. name = "go_default_library",
  25. srcs = [
  26. "basic.go",
  27. "branch.go",
  28. "collect_project.go",
  29. "commit.go",
  30. "config.go",
  31. "data.go",
  32. "job.go",
  33. "member.go",
  34. "mr.go",
  35. "pipeline.go",
  36. "project.go",
  37. "runner.go",
  38. "service.go",
  39. "statistics.go",
  40. "sync.go",
  41. "task.go",
  42. "user.go",
  43. "wechat.go",
  44. ],
  45. importpath = "go-common/app/admin/ep/saga/service",
  46. tags = ["automanaged"],
  47. visibility = ["//visibility:public"],
  48. deps = [
  49. "//app/admin/ep/saga/conf:go_default_library",
  50. "//app/admin/ep/saga/dao:go_default_library",
  51. "//app/admin/ep/saga/model:go_default_library",
  52. "//app/admin/ep/saga/service/gitlab:go_default_library",
  53. "//app/admin/ep/saga/service/utils:go_default_library",
  54. "//app/admin/ep/saga/service/wechat:go_default_library",
  55. "//library/cache/memcache:go_default_library",
  56. "//library/cache/redis:go_default_library",
  57. "//library/ecode:go_default_library",
  58. "//library/log:go_default_library",
  59. "//vendor/github.com/BurntSushi/toml:go_default_library",
  60. "//vendor/github.com/pkg/errors:go_default_library",
  61. "//vendor/github.com/robfig/cron:go_default_library",
  62. "//vendor/github.com/xanzy/go-gitlab:go_default_library",
  63. ],
  64. )
  65. filegroup(
  66. name = "package-srcs",
  67. srcs = glob(["**"]),
  68. tags = ["automanaged"],
  69. visibility = ["//visibility:private"],
  70. )
  71. filegroup(
  72. name = "all-srcs",
  73. srcs = [
  74. ":package-srcs",
  75. "//app/admin/ep/saga/service/gitlab:all-srcs",
  76. "//app/admin/ep/saga/service/mail:all-srcs",
  77. "//app/admin/ep/saga/service/utils:all-srcs",
  78. "//app/admin/ep/saga/service/wechat:all-srcs",
  79. ],
  80. tags = ["automanaged"],
  81. visibility = ["//visibility:public"],
  82. )