diff --git a/.bcr/config.yml b/.bcr/config.yml new file mode 100644 index 00000000..0ffec7f8 --- /dev/null +++ b/.bcr/config.yml @@ -0,0 +1,5 @@ +# See https://github.com/bazel-contrib/publish-to-bcr#a-note-on-release-automation +fixedReleaser: + login: mollyibot + email: mollyibot@google.com +moduleRoots: [".", "web_testing_go", "web_testing_java", "web_testing_python", "web_testing_scala"] \ No newline at end of file diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json new file mode 100644 index 00000000..eece6253 --- /dev/null +++ b/.bcr/metadata.template.json @@ -0,0 +1,20 @@ +{ + "homepage": "https://github.com/mollyibot/rules_webtesting", + "maintainers": [ + { + "name": "Michael Rea", + "email": "mtrea@google.com", + "github": "mtrea" + }, + { + "name": "Yuan Tian", + "email": "mollyibot@google.com", + "github": "mollyibot" + } + ], + "repository": [ + "github:mollyibot/rules_webtesting" + ], + "versions": [], + "yanked_versions": {} +} \ No newline at end of file diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml new file mode 100644 index 00000000..6c813411 --- /dev/null +++ b/.bcr/presubmit.yml @@ -0,0 +1,41 @@ +bcr_test_module: + matrix: + bazel: [ 7.x, 8.x ] + tasks: + web_testing_ubuntu2004: + name: "rules_webtesting test in ubuntu" + platform: ubuntu2004 + bazel: ${{ bazel }} + shell_commands: + - "sh ./.bazelci/setup_ubuntu.sh" + test_flags: + - "--test_tag_filters=-noci,-sauce" + test_targets: + - "//..." + web_testing_macos: + name: "rules_webtesting test in macos" + platform: macos + bazel: ${{ bazel }} + test_flags: + - "--test_tag_filters=-noci,-sauce,-chromium-local,-firefox-local" + build_targets: + - "//..." + test_targets: + - "//..." + web_testing_windows: + name: "rules_webtesting test in windows" + platform: windows + bazel: ${{ bazel }} + build_flags: + - "--enable_runfiles" + build_targets: + - "//..." + test_flags: + - "--test_tag_filters=-noci,-sauce" + - "--enable_runfiles" + test_targets: + - "//..." + - "-//go/webdriver:go_default_test_chromium-local" # cannot find runfile "testdata/" in manifest + - "-//go/webtest:go_default_test_chromium-local" # cannot find runfile "testdata/" in manifest + - "-//go/wtl/proxy/driverhub/quithandler:go_default_test_chromium-local" # cannot find runfile "testdata/" in manifest + - "-//go/wtl/proxy/driverhub/scripttimeout:go_default_test_chromium-local" # cannot find runfile "testdata/" in manifest diff --git a/.bcr/source.template.json b/.bcr/source.template.json new file mode 100644 index 00000000..606aa3a0 --- /dev/null +++ b/.bcr/source.template.json @@ -0,0 +1,5 @@ +{ + "integrity": "", + "strip_prefix": "{REPO}-{VERSION}", + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_webtesting-{TAG}.tar.gz" +} \ No newline at end of file diff --git a/.bcr/web_testing_go/metadata.template.json b/.bcr/web_testing_go/metadata.template.json new file mode 100644 index 00000000..eece6253 --- /dev/null +++ b/.bcr/web_testing_go/metadata.template.json @@ -0,0 +1,20 @@ +{ + "homepage": "https://github.com/mollyibot/rules_webtesting", + "maintainers": [ + { + "name": "Michael Rea", + "email": "mtrea@google.com", + "github": "mtrea" + }, + { + "name": "Yuan Tian", + "email": "mollyibot@google.com", + "github": "mollyibot" + } + ], + "repository": [ + "github:mollyibot/rules_webtesting" + ], + "versions": [], + "yanked_versions": {} +} \ No newline at end of file diff --git a/.bcr/web_testing_go/presubmit.yml b/.bcr/web_testing_go/presubmit.yml new file mode 100644 index 00000000..a7320e15 --- /dev/null +++ b/.bcr/web_testing_go/presubmit.yml @@ -0,0 +1,17 @@ +bcr_test_module: + module_path: "" + matrix: + bazel: [ 7.x, 8.x ] + tasks: + # Only run web_testing_go tests on linux but not macos and windows + web_testing_go_ubuntu2004: + name: "rules_web_testing_go in ubuntu" + platform: ubuntu2004 + bazel: ${{ bazel }} + shell_commands: + - "sh ./bazelci/setup_ubuntu.sh" + test_flags: + - "--test_tag_filters=-noci,-sauce" + build_targets: [ "//..." ] + test_targets: [ "//..." ] + diff --git a/.bcr/web_testing_go/source.template.json b/.bcr/web_testing_go/source.template.json new file mode 100644 index 00000000..8cc4b4bf --- /dev/null +++ b/.bcr/web_testing_go/source.template.json @@ -0,0 +1,5 @@ +{ + "integrity": "", + "strip_prefix": "{REPO}-{VERSION}/web_testing_go", + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_webtesting-{TAG}.tar.gz" +} \ No newline at end of file diff --git a/.bcr/web_testing_java/metadata.template.json b/.bcr/web_testing_java/metadata.template.json new file mode 100644 index 00000000..eece6253 --- /dev/null +++ b/.bcr/web_testing_java/metadata.template.json @@ -0,0 +1,20 @@ +{ + "homepage": "https://github.com/mollyibot/rules_webtesting", + "maintainers": [ + { + "name": "Michael Rea", + "email": "mtrea@google.com", + "github": "mtrea" + }, + { + "name": "Yuan Tian", + "email": "mollyibot@google.com", + "github": "mollyibot" + } + ], + "repository": [ + "github:mollyibot/rules_webtesting" + ], + "versions": [], + "yanked_versions": {} +} \ No newline at end of file diff --git a/.bcr/web_testing_java/presubmit.yml b/.bcr/web_testing_java/presubmit.yml new file mode 100644 index 00000000..7e07b8bb --- /dev/null +++ b/.bcr/web_testing_java/presubmit.yml @@ -0,0 +1,23 @@ +bcr_test_module: + module_path: "" + matrix: + bazel: [ 7.x, 8.x ] + tasks: + web_testing_java_ubuntu2004: + name: "rules_web_testing_java in ubuntu" + platform: ubuntu2004 + bazel: ${{ bazel }} + shell_commands: + - "sh ./bazelci/setup_ubuntu.sh" + test_flags: + - "--test_tag_filters=-noci,-sauce" + build_targets: [ "//..." ] + test_targets: [ "//..." ] + web_testing_java_windows: + name: "rules_web_testing_java in windows" + platform: windows + bazel: ${{ bazel }} + test_flags: + - "--test_tag_filters=-noci,-sauce" + build_targets: [ "//..." ] + test_targets: [ "//..." ] diff --git a/.bcr/web_testing_java/source.template.json b/.bcr/web_testing_java/source.template.json new file mode 100644 index 00000000..6d63c7fa --- /dev/null +++ b/.bcr/web_testing_java/source.template.json @@ -0,0 +1,5 @@ +{ + "integrity": "", + "strip_prefix": "{REPO}-{VERSION}/web_testing_java", + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_webtesting-{TAG}.tar.gz" +} \ No newline at end of file diff --git a/.bcr/web_testing_python/metadata.template.json b/.bcr/web_testing_python/metadata.template.json new file mode 100644 index 00000000..eece6253 --- /dev/null +++ b/.bcr/web_testing_python/metadata.template.json @@ -0,0 +1,20 @@ +{ + "homepage": "https://github.com/mollyibot/rules_webtesting", + "maintainers": [ + { + "name": "Michael Rea", + "email": "mtrea@google.com", + "github": "mtrea" + }, + { + "name": "Yuan Tian", + "email": "mollyibot@google.com", + "github": "mollyibot" + } + ], + "repository": [ + "github:mollyibot/rules_webtesting" + ], + "versions": [], + "yanked_versions": {} +} \ No newline at end of file diff --git a/.bcr/web_testing_python/presubmit.yml b/.bcr/web_testing_python/presubmit.yml new file mode 100644 index 00000000..cf253261 --- /dev/null +++ b/.bcr/web_testing_python/presubmit.yml @@ -0,0 +1,23 @@ +bcr_test_module: + module_path: "" + matrix: + bazel: [ 7.x, 8.x ] + tasks: + web_testing_python_ubuntu2004: + name: "rules_web_testing_python in ubuntu" + platform: ubuntu2004 + bazel: ${{ bazel }} + shell_commands: + - "sh ./bazelci/setup_ubuntu.sh" + test_flags: + - "--test_tag_filters=-noci,-sauce" + build_targets: [ "//..." ] + test_targets: [ "//..." ] + web_testing_python_windows: + name: "rules_web_testing_python in windows" + platform: windows + bazel: ${{ bazel }} + test_flags: + - "--test_tag_filters=-noci,-sauce" + build_targets: [ "//..." ] + test_targets: [ "//..." ] \ No newline at end of file diff --git a/.bcr/web_testing_python/source.template.json b/.bcr/web_testing_python/source.template.json new file mode 100644 index 00000000..85107163 --- /dev/null +++ b/.bcr/web_testing_python/source.template.json @@ -0,0 +1,5 @@ +{ + "integrity": "", + "strip_prefix": "{REPO}-{VERSION}/web_testing_python", + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_webtesting-{TAG}.tar.gz" +} \ No newline at end of file diff --git a/.bcr/web_testing_scala/metadata.template.json b/.bcr/web_testing_scala/metadata.template.json new file mode 100644 index 00000000..eece6253 --- /dev/null +++ b/.bcr/web_testing_scala/metadata.template.json @@ -0,0 +1,20 @@ +{ + "homepage": "https://github.com/mollyibot/rules_webtesting", + "maintainers": [ + { + "name": "Michael Rea", + "email": "mtrea@google.com", + "github": "mtrea" + }, + { + "name": "Yuan Tian", + "email": "mollyibot@google.com", + "github": "mollyibot" + } + ], + "repository": [ + "github:mollyibot/rules_webtesting" + ], + "versions": [], + "yanked_versions": {} +} \ No newline at end of file diff --git a/.bcr/web_testing_scala/presubmit.yml b/.bcr/web_testing_scala/presubmit.yml new file mode 100644 index 00000000..38c498e5 --- /dev/null +++ b/.bcr/web_testing_scala/presubmit.yml @@ -0,0 +1,23 @@ +bcr_test_module: + module_path: "" + matrix: + bazel: [7.x, 8.x] + tasks: + web_testing_scala_ubuntu2004: + name: "rules_web_testing_scala in ubuntu" + platform: ubuntu2004 + bazel: ${{ bazel }} + shell_commands: + - "sh ./bazelci/setup_ubuntu.sh" + test_flags: + - "--test_tag_filters=-noci,-sauce" + build_targets: [ "//..." ] + test_targets: [ "//..." ] + web_testing_scala_windows: + name: "rules_web_testing_scala in windows" + platform: windows + bazel: ${{ bazel }} + test_flags: + - "--test_tag_filters=-noci,-sauce" + build_targets: [ "//..." ] + test_targets: [ "//..." ] diff --git a/.bcr/web_testing_scala/source.template.json b/.bcr/web_testing_scala/source.template.json new file mode 100644 index 00000000..a3232715 --- /dev/null +++ b/.bcr/web_testing_scala/source.template.json @@ -0,0 +1,5 @@ +{ + "integrity": "", + "strip_prefix": "{REPO}-{VERSION}/web_testing_scala", + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_webtesting-{TAG}.tar.gz" +} \ No newline at end of file