diff --git a/modules/rules_bazel_integration_test/0.20.0/MODULE.bazel b/modules/rules_bazel_integration_test/0.20.0/MODULE.bazel new file mode 100644 index 00000000000..b65f2510e59 --- /dev/null +++ b/modules/rules_bazel_integration_test/0.20.0/MODULE.bazel @@ -0,0 +1,37 @@ +module( + name = "rules_bazel_integration_test", + version = "0.20.0", +) + +bazel_dep(name = "bazel_skylib", version = "1.4.1") +bazel_dep(name = "rules_python", version = "0.19.0") +bazel_dep(name = "platforms", version = "0.0.7") +bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.0") + +register_toolchains("@bazel_tools//tools/python:autodetecting_toolchain") + +# Must keep the Bazel version listed in WORKSPACE in sync with those loaded +# below. +bazel_binaries = use_extension( + "//:extensions.bzl", + "bazel_binaries", + dev_dependency = True, +) +bazel_binaries.download(version_file = "//:.bazelversion") +bazel_binaries.download(version = "6.4.0") +bazel_binaries.local(path = "tools/fake_bazel.sh") +use_repo( + bazel_binaries, + "bazel_binaries", + "bazel_binaries_bazelisk", + "build_bazel_bazel_.bazelversion", + "build_bazel_bazel_6_4_0", + "build_bazel_bazel_local", +) + +download_sample_file = use_extension( + "//examples/env_var_with_rootpath:sample_file_extension.bzl", + "download_sample_file", + dev_dependency = True, +) +use_repo(download_sample_file, "sample_file") diff --git a/modules/rules_bazel_integration_test/0.20.0/patches/module_dot_bazel_version.patch b/modules/rules_bazel_integration_test/0.20.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..d1fadb826b6 --- /dev/null +++ b/modules/rules_bazel_integration_test/0.20.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_bazel_integration_test", +- version = "0.0.0", ++ version = "0.20.0", + ) + + bazel_dep(name = "bazel_skylib", version = "1.4.1") + bazel_dep(name = "rules_python", version = "0.19.0") diff --git a/modules/rules_bazel_integration_test/0.20.0/presubmit.yml b/modules/rules_bazel_integration_test/0.20.0/presubmit.yml new file mode 100644 index 00000000000..38be51a2ca6 --- /dev/null +++ b/modules/rules_bazel_integration_test/0.20.0/presubmit.yml @@ -0,0 +1,10 @@ +bcr_test_module: + module_path: "" + matrix: + platform: ["macos", "ubuntu2004"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + test_targets: + - "//bazel_integration_test/bzlmod/..." diff --git a/modules/rules_bazel_integration_test/0.20.0/source.json b/modules/rules_bazel_integration_test/0.20.0/source.json new file mode 100644 index 00000000000..a64d1da7625 --- /dev/null +++ b/modules/rules_bazel_integration_test/0.20.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-bmXUl8aPV5Q0m/oAQ2nhRAY2hs4evQIncXzSMoW+Re8=", + "strip_prefix": "", + "url": "https://github.com/bazel-contrib/rules_bazel_integration_test/releases/download/v0.20.0/rules_bazel_integration_test.v0.20.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-kPRc5N4j4Ej8VPw9AnTzjZV5RFGN4ywKn886LgLqB3I=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_bazel_integration_test/metadata.json b/modules/rules_bazel_integration_test/metadata.json index e4d3f61c456..e2dd5de54cc 100644 --- a/modules/rules_bazel_integration_test/metadata.json +++ b/modules/rules_bazel_integration_test/metadata.json @@ -23,7 +23,8 @@ "0.17.0", "0.18.0", "0.19.0", - "0.19.1" + "0.19.1", + "0.20.0" ], "yanked_versions": {} }