mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:31:47 +00:00
58 lines
1.6 KiB
Python
58 lines
1.6 KiB
Python
load("//dev:go_defs.bzl", "go_test")
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
|
|
|
go_library(
|
|
name = "deployment-notifier_lib",
|
|
srcs = [
|
|
"deployment_notifier.go",
|
|
"main.go",
|
|
"manifest_differ.go",
|
|
"slack.go",
|
|
"trace.go",
|
|
],
|
|
importpath = "github.com/sourcegraph/sourcegraph/dev/deployment-notifier",
|
|
tags = [TAG_INFRA_DEVINFRA],
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
"//dev/team",
|
|
"//lib/errors",
|
|
"@com_github_google_go_github_v55//github",
|
|
"@com_github_grafana_regexp//:regexp",
|
|
"@com_github_honeycombio_libhoney_go//:libhoney-go",
|
|
"@com_github_honeycombio_libhoney_go//transmission",
|
|
"@com_github_slack_go_slack//:slack",
|
|
"@com_github_sourcegraph_log//:log",
|
|
"@org_golang_x_oauth2//:oauth2",
|
|
],
|
|
)
|
|
|
|
go_binary(
|
|
name = "deployment-notifier",
|
|
embed = [":deployment-notifier_lib"],
|
|
tags = [TAG_INFRA_DEVINFRA],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
go_test(
|
|
name = "deployment-notifier_test",
|
|
timeout = "short",
|
|
srcs = [
|
|
"deployment_notifier_test.go",
|
|
"manifest_differ_test.go",
|
|
"trace_test.go",
|
|
],
|
|
data = glob(["testdata/**"]),
|
|
embed = [":deployment-notifier_lib"],
|
|
tags = [TAG_INFRA_DEVINFRA],
|
|
deps = [
|
|
"//internal/httptestutil",
|
|
"//lib/errors",
|
|
"//lib/pointers",
|
|
"@com_github_dnaeon_go_vcr//cassette",
|
|
"@com_github_google_go_github_v55//github",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
"@org_golang_x_oauth2//:oauth2",
|
|
],
|
|
)
|