blob: 461af8410854f913a5035609b1716bf4959cc3aa [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
go_library(
name = "invoice_lib",
srcs = [
"calc.go",
"main.go",
"model.go",
"render.go",
"statusz.go",
"validation.go",
],
importpath = "code.hackerspace.pl/hscloud/bgpwtf/invoice",
visibility = ["//visibility:private"],
deps = [
"//bgpwtf/invoice/proto",
"//bgpwtf/invoice/templates",
"//go/mirko",
"//go/statusz",
"@com_github_golang_glog//:glog",
"@com_github_golang_protobuf//proto:go_default_library",
"@com_github_mattn_go_sqlite3//:go-sqlite3",
"@com_github_sebastiaanklippert_go_wkhtmltopdf//:go-wkhtmltopdf",
"@org_golang_google_grpc//codes",
"@org_golang_google_grpc//status",
],
)
go_binary(
name = "invoice",
embed = [":invoice_lib"],
visibility = ["//visibility:public"],
)
go_test(
name = "invoice_test",
srcs = ["calc_test.go"],
embed = [":invoice_lib"],
deps = ["//bgpwtf/invoice/proto"],
)