Skip to content

build: enable size plugin from angular robot #14025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ var_9: &docker-firefox-image
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
var_10: &attach_release_output
attach_workspace:
at: dist/releases
at: dist/releases

# -----------------------------
# Container version of CircleCI
Expand Down Expand Up @@ -200,6 +200,25 @@ jobs:
paths:
- "**/*"

# Since there is no UMD bundle that includes everything from the CDK, we need to move
# all bundles into a directory. This allows us to store all CDK UMD bundles as job
# artifacts that can be picked up by the Angular Github bot.
- run:
name: Prepare CDK artifacts for publish.
command: |
mkdir -p /tmp/cdk-umd-artifacts
cp dist/releases/cdk/bundles/*.umd.js /tmp/cdk-umd-artifacts

# Publish bundle artifacts which will be used to calculate the size change.
# Note: Make sure that the size plugin from the Angular robot fetches the artifacts
# from this CircleCI job (see .github/angular-robot.yml)
- store_artifacts:
path: dist/releases/material/bundles/material.umd.js
destination: material.umd.js
- store_artifacts:
path: /tmp/cdk-umd-artifacts
destination: /

- *save_cache

# ----------------------------------------
Expand Down
9 changes: 8 additions & 1 deletion .github/angular-robot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

#options for the size plugin
size:
disabled: true
disabled: false
# Name of the status that will be responsible for providing
# artifacts that will be measured by the robot.
circleCiStatusName: "ci/circleci: build_release_packages"
# Byte value of maximum allowed change in size
maxSizeIncrease: 1500

# options for the merge plugin
merge:
Expand Down Expand Up @@ -55,6 +60,8 @@ merge:
- "ci/circleci: lint"
- "ci/circleci: bazel_build_test"
- "ci/circleci: tests_local_browsers"
- "ci/circleci: tests_browserstack"
- "ci/circleci: build_release_packages"

# the comment that will be added when the merge label is added despite failing checks, leave empty or set to false to disable
# {{MERGE_LABEL}} will be replaced by the value of the mergeLabel option
Expand Down