sourcegraph/dev/build-tracker/build/BUILD.bazel
2024-08-13 13:22:41 +02:00

35 lines
924 B
Python

load("//dev:go_defs.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "build",
srcs = [
"build.go",
"steps.go",
],
importpath = "github.com/sourcegraph/sourcegraph/dev/build-tracker/build",
tags = [TAG_INFRA_DEVINFRA],
visibility = ["//visibility:public"],
deps = [
"//dev/build-tracker/notify",
"//lib/errors",
"//lib/pointers",
"@com_github_buildkite_go_buildkite_v3//buildkite",
"@com_github_sourcegraph_log//:log",
],
)
go_test(
name = "build_test",
timeout = "short",
srcs = ["build_test.go"],
embed = [":build"],
tags = [TAG_INFRA_DEVINFRA],
deps = [
"@com_github_buildkite_go_buildkite_v3//buildkite",
"@com_github_sourcegraph_log//logtest",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)