forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…ngular#34898) We rename the `material-unit-tests` job to `components-repo-unit-tests` because the job runs all unit tests found in the Angular Components repository. This includes the Angular CDK, Angular Material and more. Also the repository has been renamed from `angular/material2` to `angular/components` in the past. PR Close angular#34898
- Loading branch information
1 parent
3049878
commit fa4ea34
Showing
10 changed files
with
103 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
docs/DEBUG_MATERIAL_IVY.md → docs/DEBUG_COMPONENTS_REPO_IVY.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
set -u -e -o pipefail | ||
|
||
# Clones the `angular/components` repository if the repository has not been cloned before. | ||
# If the repository has been already cloned, the script refreshes the repository by syncing | ||
# with the upstream remote, and resetting to the commit specified in the `COMPONENTS_REPO_COMMIT` | ||
# environment variable. | ||
|
||
if [[ ! -d "${COMPONENTS_REPO_TMP_DIR}" ]]; then | ||
# Clone the repository if not present through restored cache. | ||
git clone --branch ${COMPONENTS_REPO_BRANCH} ${COMPONENTS_REPO_URL} ${COMPONENTS_REPO_TMP_DIR} | ||
|
||
# Switch into the cloned repository. | ||
cd ${COMPONENTS_REPO_TMP_DIR} | ||
|
||
# Reset branch to the desired commit. | ||
git reset --hard ${COMPONENTS_REPO_COMMIT} | ||
else | ||
# Switch into the cached repository. | ||
cd ${COMPONENTS_REPO_TMP_DIR} | ||
|
||
# Only refresh the repository if the current branch HEAD is not | ||
# matching the desired commit. | ||
if [[ "$(git rev-parse HEAD)" != "${COMPONENTS_REPO_COMMIT}" ]]; then | ||
# Pull the latest changes of the specified branch. | ||
git fetch origin ${COMPONENTS_REPO_BRANCH} | ||
|
||
# Reset the current branch to the desired commit. | ||
git reset --hard ${COMPONENTS_REPO_COMMIT} | ||
fi | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
set -u -e -o pipefail | ||
|
||
# Script that runs all unit tests of the `angular/components` repository. The script also | ||
# sets up the test blocklist from `tools/components-repo-ci`. | ||
|
||
# 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} | ||
|
||
# Copy the test blocklist into the `angular/components` repository. The unit tests will | ||
# automatically pick up the blocklist and disable the specified tests. | ||
cp ${angular_dir}/tools/components-repo-ci/test-blocklist.ts ${COMPONENTS_REPO_TMP_DIR}/test/ | ||
|
||
# Create a symlink for the Bazel binary installed through NPM, as running through Yarn introduces OOM errors. | ||
./scripts/circleci/setup_bazel_binary.sh | ||
|
||
# Now actually run the tests. The dev-app and all its subpackages are excluded as they fail | ||
# to compile due to limitations in Ivy's type checker (see FW-1352 and FW-1433) | ||
bazel test --build_tag_filters=-docs-package,-e2e,-browser:firefox-local --test_tag_filters=-e2e,-browser:firefox-local --config=ivy -- src/... -src/dev-app/... |
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
tools/material-ci/instructions.md → tools/components-repo-ci/instructions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.