2020-01-22 20:54:16 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
set -u -e -o pipefail
|
|
|
|
|
|
2020-02-03 09:21:36 +00:00
|
|
|
# Script that runs all unit tests of the `angular/components` repository.
|
2020-01-22 20:54:16 +00:00
|
|
|
|
|
|
|
|
# Path to the Angular project.
|
|
|
|
|
angular_dir=$(pwd)
|
|
|
|
|
|
|
|
|
|
# Switch into the temporary directory where the `angular/components`
|
|
|
|
|
# repository has been cloned into.
|
|
|
|
|
cd ${COMPONENTS_REPO_TMP_DIR}
|
|
|
|
|
|
|
|
|
|
# Create a symlink for the Bazel binary installed through NPM, as running through Yarn introduces OOM errors.
|
|
|
|
|
./scripts/circleci/setup_bazel_binary.sh
|
|
|
|
|
|
2022-09-24 09:09:53 +00:00
|
|
|
# Properly wire up the components repo CircleCI Bazel configuration
|
|
|
|
|
# Also enable RBE. The credentials are expected to be set up already.
|
|
|
|
|
echo "import %workspace%/.circleci/bazel.rc" >> ./.bazelrc.user
|
|
|
|
|
echo "build --config=remote" >> ./.bazelrc.user
|
|
|
|
|
|
2021-10-11 20:01:48 +00:00
|
|
|
# Now actually run the tests.
|
2022-01-26 11:00:28 +00:00
|
|
|
bazel test \
|
2022-06-29 19:07:07 +00:00
|
|
|
--build_tag_filters=-docs-package,-e2e,-browser:firefox \
|
|
|
|
|
--test_tag_filters=-e2e,-browser:firefox \
|
2022-01-26 11:00:28 +00:00
|
|
|
--build_tests_only \
|
2022-11-03 17:44:53 +00:00
|
|
|
--keep_going \
|
2022-01-26 11:00:28 +00:00
|
|
|
-- src/...
|