github.com/bazelbuild/rules_webtesting@v0.2.0/go/wsl/BUILD.bazel (about)

     1  # Copyright 2018 Google Inc.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #      http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  #
    15  ################################################################################
    16  #
    17  load("//web:web.bzl", "web_test_named_executable")
    18  load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
    19  
    20  package(default_testonly = True)
    21  
    22  licenses(["notice"])  # Apache 2.0
    23  
    24  web_test_named_executable(
    25      name = "wsl",
    26      alt_name = "WEBDRIVER_SERVER_LIGHT",
    27      executable = "//go/wsl/main",
    28      visibility = ["//visibility:public"],
    29  )
    30  
    31  go_library(
    32      name = "go_default_library",
    33      srcs = ["wsl.go"],
    34      importpath = "github.com/bazelbuild/rules_webtesting/go/wsl",
    35      visibility = [":__subpackages__"],
    36      deps = [
    37          "//go/httphelper:go_default_library",
    38          "//go/wsl/hub:go_default_library",
    39          "//go/wsl/upload:go_default_library",
    40      ],
    41  )
    42  
    43  go_test(
    44      name = "go_default_test",
    45      srcs = ["wsl_test.go"],
    46      data = ["//testdata"],
    47      embed = [":go_default_library"],
    48      deps = [
    49          "//go/bazel:go_default_library",
    50          "//go/portpicker:go_default_library",
    51      ],
    52  )