blob: 4e1300a2592af2373c2249b1ffc5e816d0bbad27 [file]
# 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",
},
)
e2e_integration_test(
name = "e2e_fine_grained_symlinks",
)
e2e_integration_test(
name = "e2e_jasmine",
npm_packages = {
"//packages/jasmine:npm_package": "@bazel/jasmine",
},
)
e2e_integration_test(
name = "e2e_node_loader_no_preserve_symlinks",
)
e2e_integration_test(
name = "e2e_node_loader_preserve_symlinks",
)
e2e_integration_test(
name = "e2e_nodejs_image",
bazel_commands = [
"info",
"test ...",
"run --platforms=@build_bazel_rules_nodejs//toolchains/node: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_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",
)
e2e_integration_test(
name = "e2e_symlinked_node_modules_yarn",
)
# 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_ts_devserver",
npm_packages = {
"//packages/protractor:npm_package": "@bazel/protractor",
"//packages/typescript:npm_package": "@bazel/typescript",
},
)
[e2e_integration_test(
name = "e2e_typescript_%s" % tsc_version.replace(".", "_"),
npm_packages = {
"//packages/jasmine:npm_package": "@bazel/jasmine",
"//packages/typescript:npm_package": "@bazel/typescript",
},
# use these package.json packages instead
package_json_substitutions = {
"typescript": tsc_version,
},
workspace_root = "typescript",
) for tsc_version in [
"3.0.x",
"3.1.x",
"3.2.x",
"3.3.x",
"3.4.x",
"3.5.x",
"3.6.x",
]]