Skip to content

Commit 5b908be

Browse files
devversionVivian Hu
authored and
Vivian Hu
committed
build: enable size plugin from angular robot (#14025)
* build: enable size plugin from angular robot * Improve comment
1 parent 0d3b74a commit 5b908be

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.circleci/config.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ var_9: &docker-firefox-image
6464
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
6565
var_10: &attach_release_output
6666
attach_workspace:
67-
at: dist/releases
67+
at: dist/releases
6868

6969
# -----------------------------
7070
# Container version of CircleCI
@@ -200,6 +200,25 @@ jobs:
200200
paths:
201201
- "**/*"
202202

203+
# Since there is no UMD bundle that includes everything from the CDK, we need to move
204+
# all bundles into a directory. This allows us to store all CDK UMD bundles as job
205+
# artifacts that can be picked up by the Angular Github bot.
206+
- run:
207+
name: Prepare CDK artifacts for publish.
208+
command: |
209+
mkdir -p /tmp/cdk-umd-artifacts
210+
cp dist/releases/cdk/bundles/*.umd.js /tmp/cdk-umd-artifacts
211+
212+
# Publish bundle artifacts which will be used to calculate the size change.
213+
# Note: Make sure that the size plugin from the Angular robot fetches the artifacts
214+
# from this CircleCI job (see .github/angular-robot.yml)
215+
- store_artifacts:
216+
path: dist/releases/material/bundles/material.umd.js
217+
destination: material.umd.js
218+
- store_artifacts:
219+
path: /tmp/cdk-umd-artifacts
220+
destination: /
221+
203222
- *save_cache
204223

205224
# ----------------------------------------

.github/angular-robot.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
#options for the size plugin
44
size:
5-
disabled: true
5+
disabled: false
6+
# Name of the status that will be responsible for providing
7+
# artifacts that will be measured by the robot.
8+
circleCiStatusName: "ci/circleci: build_release_packages"
9+
# Byte value of maximum allowed change in size
10+
maxSizeIncrease: 1500
611

712
# options for the merge plugin
813
merge:
@@ -55,6 +60,8 @@ merge:
5560
- "ci/circleci: lint"
5661
- "ci/circleci: bazel_build_test"
5762
- "ci/circleci: tests_local_browsers"
63+
- "ci/circleci: tests_browserstack"
64+
- "ci/circleci: build_release_packages"
5865

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

0 commit comments

Comments
 (0)