7e46a6d99d
Previously, the ivy-2019 branch of the Material (aka components) repo was used, which contains some changes that were necessary to work with Ivy. These changes are not longer necessary, as Material's master branch is fully working with Ivy today. To be up-to-date with recent Material development and its support for more recent dependencies, e.g. TypeScript, it is desirable for us to be on a newer version of Material. This commit moves the Material tests away from the ivy-2019 branch, to a recent commit on master. We are not targeting the master branch itself, as that would introduce a moving target into Angular's CI checks, which is undesirable. Lastly, the usage of gulp to run Material's tests is changed into using Bazel, as Material itself is now also built with Bazel. PR Close #31569
21 lines
825 B
Bash
Executable File
21 lines
825 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -u -e -o pipefail
|
|
|
|
# The path of the .bazelrc.user file to update should be passed as first parameter to this script.
|
|
# This allows to setup RBE for both the Angular repo and the Material repo.
|
|
bazelrc_user="$1"
|
|
|
|
echo "Writing RBE configuration to ${bazelrc_user}"
|
|
|
|
touch ${bazelrc_user}
|
|
echo -e 'build --config=remote\n' >> ${bazelrc_user}
|
|
echo -e 'build:remote --remote_accept_cached=true\n' >> ${bazelrc_user}
|
|
echo "Reading from remote cache for bazel remote jobs."
|
|
if [[ "$CI_PULL_REQUEST" == "false" ]]; then
|
|
echo -e 'build:remote --remote_upload_local_results=true\n' >> ${bazelrc_user}
|
|
echo "Uploading local build results to remote cache."
|
|
else
|
|
echo -e 'build:remote --remote_upload_local_results=false\n' >> ${bazelrc_user}
|
|
echo "Not uploading local build results to remote cache."
|
|
fi
|