github.com/jenkins-x/test-infra@v0.0.7/prow/config/BUILD.bazel (about) 1 package(default_visibility = ["//visibility:public"]) 2 3 load( 4 "@io_bazel_rules_go//go:def.bzl", 5 "go_library", 6 "go_test", 7 ) 8 9 go_test( 10 name = "go_default_test", 11 srcs = [ 12 "branch_protection_test.go", 13 "config_test.go", 14 "jobs_test.go", 15 "tide_test.go", 16 ], 17 data = [ 18 "//config:prowjobs", 19 "//prow:configs", 20 ], 21 embed = [":go_default_library"], 22 deps = [ 23 "//prow/apis/prowjobs/v1:go_default_library", 24 "//prow/github:go_default_library", 25 "//prow/kube:go_default_library", 26 "//prow/labels:go_default_library", 27 "//prow/pod-utils/decorate:go_default_library", 28 "//prow/pod-utils/downwardapi:go_default_library", 29 "//vendor/github.com/knative/build/pkg/apis/build/v1alpha1:go_default_library", 30 "//vendor/k8s.io/api/core/v1:go_default_library", 31 "//vendor/k8s.io/apimachinery/pkg/util/diff:go_default_library", 32 "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library", 33 ], 34 ) 35 36 go_library( 37 name = "go_default_library", 38 srcs = [ 39 "agent.go", 40 "branch_protection.go", 41 "config.go", 42 "githuboauth.go", 43 "jobs.go", 44 "secrets_agent.go", 45 "tide.go", 46 ], 47 importpath = "k8s.io/test-infra/prow/config", 48 deps = [ 49 "//prow/apis/prowjobs/v1:go_default_library", 50 "//prow/config/org:go_default_library", 51 "//prow/github:go_default_library", 52 "//prow/kube:go_default_library", 53 "//prow/pod-utils/decorate:go_default_library", 54 "//prow/pod-utils/downwardapi:go_default_library", 55 "//vendor/github.com/gorilla/sessions:go_default_library", 56 "//vendor/github.com/knative/build/pkg/apis/build/v1alpha1:go_default_library", 57 "//vendor/github.com/sirupsen/logrus:go_default_library", 58 "//vendor/golang.org/x/oauth2:go_default_library", 59 "//vendor/gopkg.in/robfig/cron.v2:go_default_library", 60 "//vendor/k8s.io/api/core/v1:go_default_library", 61 "//vendor/k8s.io/apimachinery/pkg/labels:go_default_library", 62 "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library", 63 "//vendor/k8s.io/apimachinery/pkg/util/validation:go_default_library", 64 "//vendor/sigs.k8s.io/yaml:go_default_library", 65 ], 66 ) 67 68 filegroup( 69 name = "package-srcs", 70 srcs = glob(["**"]), 71 tags = ["automanaged"], 72 visibility = ["//visibility:private"], 73 ) 74 75 filegroup( 76 name = "all-srcs", 77 srcs = [ 78 ":package-srcs", 79 "//prow/config/jobtests:all-srcs", 80 "//prow/config/org:all-srcs", 81 ], 82 tags = ["automanaged"], 83 )