Skip to content

Commit 6c22eb5

Browse files
committed
build: enable size plugin from angular robot
1 parent d0d97c3 commit 6c22eb5

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.circleci/config.yml

Lines changed: 18 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,23 @@ 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 artifacts in favor of the CircleCI size calculations.
213+
# Make sure that the size plugin from the Angular robot fetches the
214+
# artifacts from this CircleCI job.
215+
- store_artifacts:
216+
path: dist/releases/material/bundles/material.umd.js
217+
- store_artifacts:
218+
path: /tmp/cdk-umd-artifacts
219+
203220
- *save_cache
204221

205222
# ----------------------------------------

.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)