Skip to content

Commit

Permalink
[rb] remove redundant build dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jul 11, 2020
1 parent ad229a5 commit f730380
Showing 1 changed file with 73 additions and 71 deletions.
144 changes: 73 additions & 71 deletions rb/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ rubygem(
"//rb:edge-chrome",
"//rb:firefox",
"//rb:ie",
"//rb:remote",
"//rb:safari",
"//rb:support"
]
)

Expand All @@ -21,7 +19,10 @@ rubydocs(
],
readme = "README.md",
output_dir = "docs/api/rb",
deps = ["//rb:gem:build", "//rb:bundle"]
deps = [
"//rb:gem:build",
"//rb:bundle"
]
)

ruby_library(name = "common",
Expand Down Expand Up @@ -50,13 +51,6 @@ ruby_library(name = "common",
]
)

ruby_library(name = "support",
srcs = [
"lib/selenium/webdriver/support/**/*.rb",
"lib/selenium/webdriver/support.rb"
]
)

ruby_library(name = "chrome",
srcs = [
"lib/selenium/webdriver/chrome/**/*.rb",
Expand All @@ -70,8 +64,14 @@ ruby_test(name = "chrome",
"spec/integration/selenium/webdriver/*_spec.rb",
"spec/integration/selenium/webdriver/chrome/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
deps = [":chrome", ":devtools"]
include = [
"rb/spec/integration",
"build/rb/lib"
],
deps = [
":chrome",
":devtools"
]
)

ruby_library(name = "edge",
Expand All @@ -87,25 +87,31 @@ ruby_test(name = "edge",
"spec/integration/selenium/webdriver/*_spec.rb",
"spec/integration/selenium/webdriver/edge_html/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
deps = [ ":edge" ]
include = [
"rb/spec/integration",
"build/rb/lib"
],
deps = [":edge"]
)

ruby_library(name = "edge-chrome",
srcs = [
"lib/selenium/webdriver/edge_chrome/**/*.rb",
"lib/selenium/webdriver/edge.rb"
],
deps = [":common"]
deps = [":chrome"]
)

ruby_test(name = "edge-chrome",
srcs = [
"spec/integration/selenium/webdriver/*_spec.rb",
"spec/integration/selenium/webdriver/edge_chrome/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
deps = [ ":edge-chrome", ":chrome"]
include = [
"rb/spec/integration",
"build/rb/lib"
],
deps = [":edge-chrome"]
)

ruby_library(name = "firefox",
Expand All @@ -121,7 +127,10 @@ ruby_test(name = "firefox",
"spec/integration/selenium/webdriver/*_spec.rb",
"spec/integration/selenium/webdriver/firefox/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
include = [
"rb/spec/integration",
"build/rb/lib"
],
deps = [":firefox"]
)

Expand All @@ -138,25 +147,11 @@ ruby_test(name = "ie",
"spec/integration/selenium/webdriver/*_spec.rb",
"spec/integration/selenium/webdriver/ie/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
deps = [ ":ie" ]
)

ruby_library(name = "remote",
srcs = [
"lib/selenium/webdriver/remote/**/*.rb",
"lib/selenium/webdriver/remote.rb"
include = [
"rb/spec/integration",
"build/rb/lib"
],
deps = [":common"]
)

ruby_test(name = "remote",
srcs = [
"spec/integration/selenium/webdriver/*_spec.rb",
"spec/integration/selenium/webdriver/remote/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
deps = [":remote"]
deps = [":ie"]
)

ruby_test(name = "remote-chrome",
Expand All @@ -165,10 +160,11 @@ ruby_test(name = "remote-chrome",
"spec/integration/selenium/webdriver/chrome/**/*_spec.rb",
"spec/integration/selenium/webdriver/remote/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
deps = [
":remote",
":chrome"]
include = [
"rb/spec/integration",
"build/rb/lib"
],
deps = [":chrome"]
)

ruby_test(name = "remote-firefox",
Expand All @@ -177,11 +173,11 @@ ruby_test(name = "remote-firefox",
"spec/integration/selenium/webdriver/firefox/**/*_spec.rb",
"spec/integration/selenium/webdriver/remote/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
deps = [
":remote",
":firefox"
]
include = [
"rb/spec/integration",
"build/rb/lib"
],
deps = [":firefox"]
)

ruby_test(name = "remote-safari",
Expand All @@ -190,11 +186,11 @@ ruby_test(name = "remote-safari",
"spec/integration/selenium/webdriver/remote/**/*_spec.rb",
"spec/integration/selenium/webdriver/safari/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
deps = [
":remote",
":safari"
]
include = [
"rb/spec/integration",
"build/rb/lib"
],
deps = [":safari"]
)

ruby_test(name = "remote-safari-preview",
Expand All @@ -203,11 +199,11 @@ ruby_test(name = "remote-safari-preview",
"spec/integration/selenium/webdriver/remote/**/*_spec.rb",
"spec/integration/selenium/webdriver/safari/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
deps = [
":remote",
":safari"
]
include = [
"rb/spec/integration",
"build/rb/lib"
],
deps = [":safari"]
)

ruby_test(name = "remote-ie",
Expand All @@ -216,11 +212,11 @@ ruby_test(name = "remote-ie",
"spec/integration/selenium/webdriver/ie/**/*_spec.rb",
"spec/integration/selenium/webdriver/remote/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
deps = [
":remote",
":ie"
]
include = [
"rb/spec/integration",
"build/rb/lib"
],
deps = [":ie"]
)

ruby_test(name = "remote-edge",
Expand All @@ -229,11 +225,11 @@ ruby_test(name = "remote-edge",
"spec/integration/selenium/webdriver/edge_html/**/*_spec.rb",
"spec/integration/selenium/webdriver/remote/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
deps = [
":remote",
":edge"
]
include = [
"rb/spec/integration",
"build/rb/lib"
],
deps = [":edge"]
)

ruby_library(name = "safari",
Expand All @@ -249,7 +245,10 @@ ruby_test(name = "safari",
"spec/integration/selenium/webdriver/*_spec.rb",
"spec/integration/selenium/webdriver/safari/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
include = [
"rb/spec/integration",
"build/rb/lib"
],
deps = [":safari"]
)

Expand All @@ -258,7 +257,10 @@ ruby_test(name = "safari-preview",
"spec/integration/selenium/webdriver/*_spec.rb",
"spec/integration/selenium/webdriver/safari/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
include = [
"rb/spec/integration",
"build/rb/lib"
],
deps = [":safari"]
)

Expand All @@ -278,16 +280,16 @@ ruby_test(name = "unit",
"spec/unit/selenium/webdriver/**/*_spec.rb",
"spec/unit/selenium/*_spec.rb",
],
include = ["rb/spec/unit", "build/rb/lib"],
include = [
"rb/spec/unit",
"build/rb/lib"
],
deps = [
":chrome",
":common",
":edge",
":firefox",
":ie",
":remote",
":safari",
":support"
]
)

Expand Down

0 comments on commit f730380

Please sign in to comment.