Skip to content

Commit

Permalink
[build] download pinned selenium manager versions instead of storing …
Browse files Browse the repository at this point in the history
…in repo
  • Loading branch information
titusfortner committed Dec 26, 2023
1 parent 5121d4e commit 4fd455b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 24 deletions.
4 changes: 4 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ oci_pull(
repository = "selenium/standalone-chrome",
)

load("//common:selenium_manager.bzl", "selenium_manager")

selenium_manager()

load("//common:repositories.bzl", "pin_browsers")

pin_browsers()
Expand Down
24 changes: 3 additions & 21 deletions common/manager/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,15 @@ package(

alias(
name = "selenium-manager-linux",
actual = select({
"//common:stamp": "linux/selenium-manager",
"//conditions:default": "//rust:selenium-manager-linux",
}),
actual = "@download_sm_linux//file",
)

alias(
name = "selenium-manager-macos",
actual = select({
"//common:stamp": "macos/selenium-manager",
"//conditions:default": "//rust:selenium-manager-macos",
}),
actual = "@download_sm_macos//file",
)

# Rust does not compile properly on windows so just use what is in repo for now
alias(
name = "selenium-manager-windows",
actual = "windows/selenium-manager.exe",
)

exports_files(
[
"linux/selenium-manager",
"macos/selenium-manager",
"windows/selenium-manager.exe",
],
visibility = [
"//rust:__pkg__",
],
actual = "@download_sm_windows//file",
)
Binary file removed common/manager/linux/selenium-manager
Binary file not shown.
Binary file removed common/manager/macos/selenium-manager
Binary file not shown.
Binary file removed common/manager/windows/selenium-manager.exe
Binary file not shown.
6 changes: 3 additions & 3 deletions rust/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ alias(
name = "selenium-manager-windows",
actual = select({
"//common:windows": ":selenium-manager",
"//conditions:default": "//common/manager:windows/selenium-manager.exe",
"//conditions:default": "@download_sm_windows//file",
}),
tags = [
"manual",
Expand All @@ -32,7 +32,7 @@ alias(
name = "selenium-manager-macos",
actual = select({
"//common:macos": ":selenium-manager",
"//conditions:default": "//common/manager:macos/selenium-manager",
"//conditions:default": "@download_sm_macos//file",
}),
tags = [
"manual",
Expand All @@ -46,7 +46,7 @@ alias(
name = "selenium-manager-linux",
actual = select({
"//common:linux": ":selenium-manager",
"//conditions:default": "//common/manager:linux/selenium-manager",
"//conditions:default": "@download_sm_linux//file",
}),
tags = [
"manual",
Expand Down

0 comments on commit 4fd455b

Please sign in to comment.