From f6bfcffbb1d0e0149c781b67f228956977067c0d Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Wed, 7 Nov 2018 21:58:39 +0000 Subject: [PATCH] build: enable size plugin from angular robot (#14025) * build: enable size plugin from angular robot * Improve comment --- .circleci/config.yml | 21 ++++++++++++++++++++- .github/angular-robot.yml | 9 ++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a193aa0f1a0..897816f86c3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 @@ -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 # ---------------------------------------- diff --git a/.github/angular-robot.yml b/.github/angular-robot.yml index 46537b42437..a657862f96a 100644 --- a/.github/angular-robot.yml +++ b/.github/angular-robot.yml @@ -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: @@ -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