-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate to bzlmod * More polish * Minor fix * Simplify repo name * Re-enable sauceconnect * Fix bazelrc * Minor fix * rm resolved_deps.py * Register scalca test toolchain * Register scalca test toolchain * Register scalca test toolchain * Fix maven targets * Fix junit * Add scala deps * Fix maven coords * Fix maven coords * Use the correct scala_test setup * Fix windows build * Update presubmit configs * Fix windows * Fix lockfile on windows * Fix lockfile on windows * Run buildifier * Re-organize bazel_dep * Implement version selection for brower dependencies * Remove WORKSPACE * Rename version to install
- Loading branch information
1 parent
d8208bd
commit 77428ec
Showing
35 changed files
with
587 additions
and
959 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7.4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ bazel-* | |
*.pyc | ||
.vs/* | ||
user.bazelrc | ||
MODULE.bazel.lock | ||
|
||
.idea/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
module( | ||
name = "rules_webtesting", | ||
version = "0.4.0", | ||
) | ||
|
||
bazel_dep(name = "bazel_skylib", version = "1.7.1") | ||
bazel_dep(name = "platforms", version = "0.0.10") | ||
|
||
##### Go dependencies ##### | ||
bazel_dep(name = "rules_go", version = "0.51.0-rc1", repo_name = "io_bazel_rules_go") | ||
bazel_dep(name = "gazelle", version = "0.40.0", repo_name = "bazel_gazelle") | ||
|
||
go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") | ||
go_deps.from_file(go_mod = "//:go.mod") | ||
|
||
# All *direct* Go dependencies of the module have to be listed explicitly. | ||
use_repo( | ||
go_deps, | ||
"com_github_gorilla_mux", | ||
"com_github_tebeka_selenium", | ||
) | ||
|
||
##### Java dependencies ##### | ||
bazel_dep(name = "rules_jvm_external", version = "6.6") | ||
|
||
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") | ||
maven.install( | ||
artifacts = [ | ||
"com.google.guava:guava:33.2.1-jre", | ||
"org.seleniumhq.selenium:selenium-remote-driver:4.27.0", | ||
"org.seleniumhq.selenium:selenium-api:4.27.0", | ||
"junit:junit:4.13.2", | ||
], | ||
) | ||
use_repo(maven, "maven") | ||
|
||
##### Python dependencies ##### | ||
bazel_dep(name = "rules_python", version = "1.0.0") | ||
|
||
python = use_extension("@rules_python//python/extensions:python.bzl", "python") | ||
python.toolchain( | ||
is_default = True, | ||
python_version = "3.11", | ||
) | ||
use_repo(python, "python_3_11", "python_versions") | ||
|
||
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") | ||
pip.parse( | ||
hub_name = "rules_webtesting_py_deps", | ||
python_version = "3.11", | ||
requirements_lock = "//:requirements_lock.txt", | ||
requirements_windows = "requirements_lock_windows.txt", | ||
) | ||
use_repo(pip, "rules_webtesting_py_deps") | ||
|
||
##### Scala dependencies ##### | ||
bazel_dep(name = "rules_scala", repo_name = "io_bazel_rules_scala") | ||
|
||
# TODO: Switch to a release version once it's available in BCR. | ||
# Otherwise, the root module has to declare the same override. | ||
git_override( | ||
module_name = "rules_scala", | ||
commit = "7fb52c7fc2ef8f7670feb73c0a9869715bdc40b8", | ||
remote = "https://github.com/mbland/rules_scala", | ||
) | ||
|
||
scala_deps = use_extension( | ||
"@io_bazel_rules_scala//scala/extensions:deps.bzl", | ||
"scala_deps", | ||
) | ||
scala_deps.settings( | ||
fetch_sources = True, | ||
) | ||
scala_deps.toolchains( | ||
scalatest = True, | ||
) | ||
|
||
##### Browsers dependencies ##### | ||
browser_repositories = use_extension("//web:extension.bzl", "browser_repositories_extension") | ||
browser_repositories.install(version = "0.3.3") | ||
use_repo( | ||
browser_repositories, | ||
"com_saucelabs_sauce_connect_linux_x64", | ||
"com_saucelabs_sauce_connect_macos_x64", | ||
"com_saucelabs_sauce_connect_windows_x64", | ||
"org_chromium_chromedriver_linux_x64", | ||
"org_chromium_chromedriver_macos_arm64", | ||
"org_chromium_chromedriver_macos_x64", | ||
"org_chromium_chromedriver_windows_x64", | ||
"org_chromium_chromium_linux_x64", | ||
"org_chromium_chromium_macos_arm64", # Only available in 0.3.3 | ||
"org_chromium_chromium_macos_x64", | ||
"org_chromium_chromium_windows_x64", | ||
"org_mozilla_firefox_linux_x64", | ||
"org_mozilla_firefox_macos_arm64", | ||
"org_mozilla_firefox_macos_x64", | ||
"org_mozilla_geckodriver_linux_x64", | ||
"org_mozilla_geckodriver_macos_arm64", | ||
"org_mozilla_geckodriver_macos_x64", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.