| # Copyright 2017 The Bazel Authors. All rights reserved. |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| load(":test.bzl", "e2e_integration_test") |
| |
| e2e_integration_test( |
| name = "e2e_bazel_managed_deps", |
| npm_packages = { |
| "//packages/jasmine:npm_package": "@bazel/jasmine", |
| }, |
| # TODO: figure out why this fails on Windows since setting |
| # symlink_node_modules to False in the test WORKSPACE |
| tags = ["no-bazelci-windows"], |
| ) |
| |
| e2e_integration_test( |
| name = "e2e_coverage", |
| bazel_commands = [ |
| "info", |
| "coverage ...", |
| ], |
| npm_packages = { |
| "//packages/jasmine:npm_package": "@bazel/jasmine", |
| "//packages/concatjs:npm_package": "@bazel/concatjs", |
| }, |
| # Coverage not working on Windows. Looks like a bazel issue. |
| # ==================== Test output for //:coverage_test: |
| # ERROR(tools/test/windows/tw.cc:1262) ERROR: src/main/native/windows/process.cc(199): CreateProcessW("C:\users\b\_bazel_b\tpt6yasm\execroot\e2e_coverage\bazel-out\x64_windows-fastbuild\bin\coverage_test.bat.runfiles\bazel_tools\tools\test\collect_coverage.sh" ./coverage_test.bat): The system cannot find the file specified. |
| # (error: 2) |
| # ERROR(tools/test/windows/tw.cc:1419) Failed to start test process (arg: C:\users\b\_bazel_b\tpt6yasm\execroot\e2e_coverage\bazel-out\x64_windows-fastbuild\bin\coverage_test.bat.runfiles\bazel_tools\tools\test\collect_coverage.sh) |
| tags = [ |
| "no-bazelci-windows", |
| ], |
| ) |
| |
| e2e_integration_test( |
| name = "e2e_fine_grained_symlinks", |
| # TODO: figure out why this fails on Windows since setting |
| # symlink_node_modules to False in the test WORKSPACE |
| tags = ["no-bazelci-windows"], |
| ) |
| |
| [e2e_integration_test( |
| name = "e2e_jasmine_%s" % jasmine_version.replace(".", "_"), |
| npm_packages = { |
| "//packages/jasmine:npm_package": "@bazel/jasmine", |
| }, |
| # use these package.json packages instead |
| package_json_substitutions = { |
| "jasmine": jasmine_version, |
| "jasmine-core": jasmine_version, |
| }, |
| # TODO: figure out why this fails on Windows since setting |
| # symlink_node_modules to False in the test WORKSPACE |
| tags = ["no-bazelci-windows"], |
| workspace_root = "jasmine", |
| ) for jasmine_version in [ |
| # TODO(6.0): remove old API tests |
| # Old API |
| "2.99.x", |
| "3.9.x", |
| "3.10.x", |
| # New API |
| "4.0.x", |
| ]] |
| |
| e2e_integration_test( |
| name = "e2e_node_loader_preserve_symlinks", |
| # TODO: figure out why this fails on Windows since setting |
| # symlink_node_modules to False in the test WORKSPACE |
| tags = ["no-bazelci-windows"], |
| ) |
| |
| e2e_integration_test( |
| name = "e2e_nodejs_image", |
| bazel_commands = [ |
| "info", |
| "test ...", |
| "run --platforms=@rules_nodejs//nodejs:linux_amd64 //:nodejs_image", |
| ], |
| # Only run on buildkite linux as other CI platforms have no docker available |
| tags = [ |
| "no-bazelci-mac", |
| "no-bazelci-windows", |
| "no-circleci", |
| ], |
| ) |
| |
| e2e_integration_test( |
| name = "e2e_nodejs_host", |
| ) |
| |
| e2e_integration_test( |
| name = "e2e_packages", |
| # TODO(alex): figure out why this is broken by turning on linker |
| tags = ["no-bazelci-windows"], |
| ) |
| |
| e2e_integration_test( |
| name = "e2e_symlinked_node_modules_npm", |
| # TODO: figure out why this fails on Windows since setting |
| # symlink_node_modules to False in the test WORKSPACE |
| tags = ["no-bazelci-windows"], |
| ) |
| |
| e2e_integration_test( |
| name = "e2e_symlinked_node_modules_yarn", |
| # TODO: figure out why this fails on Windows since setting |
| # symlink_node_modules to False in the test WORKSPACE |
| tags = ["no-bazelci-windows"], |
| ) |
| |
| # terser rules are tested in the e2e_webapp |
| test_suite( |
| name = "e2e_terser", |
| tests = ["e2e_webapp"], |
| ) |
| |
| # rollup rules are tested in the e2e_webapp |
| test_suite( |
| name = "e2e_rollup", |
| tests = ["e2e_webapp"], |
| ) |
| |
| e2e_integration_test( |
| name = "e2e_webapp", |
| npm_packages = { |
| "//packages/rollup:npm_package": "@bazel/rollup", |
| "//packages/terser:npm_package": "@bazel/terser", |
| }, |
| ) |
| |
| e2e_integration_test( |
| name = "e2e_concatjs_devserver", |
| npm_packages = { |
| "//packages/concatjs:npm_package": "@bazel/concatjs", |
| "//packages/protractor:npm_package": "@bazel/protractor", |
| "//packages/typescript:npm_package": "@bazel/typescript", |
| }, |
| ) |
| |
| # tsc_wrapped uses unstable APIs in typescript, so it's wise |
| # to test it against all the versions we might need to support |
| [e2e_integration_test( |
| name = "e2e_typescript_%s" % tsc_version.replace(".", "_"), |
| npm_packages = { |
| "//packages/jasmine:npm_package": "@bazel/jasmine", |
| "//packages/concatjs:npm_package": "@bazel/concatjs", |
| }, |
| # use these package.json packages instead |
| package_json_substitutions = { |
| "typescript": tsc_version, |
| }, |
| workspace_root = "typescript", |
| ) for tsc_version in [ |
| "4.0.x", |
| "4.1.x", |
| "4.2.x", |
| "4.3.x", |
| ]] |
| |
| e2e_integration_test( |
| name = "e2e_bazel_run_chdir", |
| bazel_commands = [ |
| "run //subfolder:chdir-test", |
| ], |
| # TODO: figure out why this fails on Windows |
| tags = ["no-bazelci-windows"], |
| ) |
| |
| e2e_integration_test( |
| name = "e2e_linker_disabled_regression", |
| bazel_commands = [ |
| "build //...", |
| "run //subdir:binary", |
| ], |
| # TODO: figure out why this fails on Windows |
| tags = ["no-bazelci-windows"], |
| ) |