Skip to content

Commit

Permalink
[bazel]: Expose filegroups to allow java appserver tests to run
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Jul 9, 2019
1 parent dc6dbc1 commit e6764e4
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
5 changes: 5 additions & 0 deletions java/client/test/org/openqa/selenium/environment/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ java_library(
data = [
"webserver/keystore",
"//common/src/web",
"//javascript/atoms",
"//third_party/closure/goog",
"//third_party/js/selenium:webdriver_xpi",
"//third_party/js/selenium:webdriver.json",
"//third_party/js/sizzle",
],
visibility = [
"//java/client/test:__subpackages__",
Expand Down
15 changes: 15 additions & 0 deletions javascript/atoms/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@ load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")

package(default_visibility = ["//visibility:public"])

filegroup(
name = "atoms",
srcs = glob([
"**/*.html",
"**/*.jpg",
"**/*.js",
"**/*.png",
"**/*.svg",
]),
visibility = [
"//java/client/test/org/openqa/selenium/environment:__pkg__",
"//javascript/node/selenium-webdriver:__pkg__",
],
)

closure_js_library(
name = "action",
srcs = ["action.js"],
Expand Down
11 changes: 11 additions & 0 deletions third_party/closure/goog/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Only present to allow us to provide the filegroup to the test webserver

filegroup(
name = "goog",
srcs = glob([
"**/*.js",
]),
visibility = [
"//java/client/test/org/openqa/selenium/environment:__pkg__",
],
)
2 changes: 2 additions & 0 deletions third_party/js/selenium/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ copy_file(
out = "webdriver.xpi",
visibility = [
"//java/client/src/org/openqa/selenium/firefox/xpi:__pkg__",
"//java/client/test/org/openqa/selenium/environment:__pkg__",
],
)

Expand All @@ -16,5 +17,6 @@ exports_files(
visibility = [
"//dotnet/src/webdriver:__pkg__",
"//java/client/src/org/openqa/selenium/firefox:__pkg__",
"//java/client/test/org/openqa/selenium/environment:__pkg__",
],
)
1 change: 1 addition & 0 deletions third_party/js/sizzle/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ filegroup(
srcs = ["sizzle.js"],
visibility = [
"//java/client/src/com/thoughtworks/selenium/webdriven:__pkg__",
"//java/client/test/org/openqa/selenium/environment:__pkg__",
"//javascript/selenium-core:__pkg__",
],
)

0 comments on commit e6764e4

Please sign in to comment.