From 858e48a7944e938a47ac12ca481d057d4e73b325 Mon Sep 17 00:00:00 2001 From: Fabian Wiles Date: Thu, 3 May 2018 20:46:20 +1200 Subject: [PATCH] ci: add config for size plugin of the github rebot (#23665) PR Close #23665 --- .circleci/config.yml | 14 +++++++++----- .github/angular-robot.yml | 8 ++++++++ 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 236e4d1bc2..c49a2cc944 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -89,19 +89,23 @@ jobs: # CircleCI will allow us to go back and view/download these artifacts from past builds. # Also we can use a service like https://buildsize.org/ to automatically track binary size of these artifacts. + # The destination keys need be format {projectName}/{context}/{fileName} so that the github-robot can process them for size calculations + # projectName should remain consistant to group files + # context and fileName can be almost anything (within usual URI rules) + # There should only be exactly 2 forward slashes in the path + # This is so they're backwards compatiable with the existing data we have on bundle sizes - store_artifacts: path: dist/bin/packages/core/test/bundling/hello_world/bundle.min.js - destination: packages/core/test/bundling/hello_world/bundle.min.js + destination: core/hello_world/bundle - store_artifacts: path: dist/bin/packages/core/test/bundling/todo/bundle.min.js - destination: packages/core/test/bundling/todo/bundle.min.js + destination: core/todo/bundle - store_artifacts: path: dist/bin/packages/core/test/bundling/hello_world/bundle.min.js.br - destination: packages/core/test/bundling/hello_world/bundle.min.js.br + destination: core/hello_world/bundle.br - store_artifacts: path: dist/bin/packages/core/test/bundling/todo/bundle.min.js.br - destination: packages/core/test/bundling/todo/bundle.min.js.br - + destination: core/todo/bundle.br - save_cache: key: *cache_key paths: diff --git a/.github/angular-robot.yml b/.github/angular-robot.yml index a7cddb3aa9..0f7e06119d 100644 --- a/.github/angular-robot.yml +++ b/.github/angular-robot.yml @@ -1,5 +1,13 @@ # Configuration for angular-robot +#options for the size plugin +size: + disabled: false + maxSizeIncrease: 1000 + status: + disabled: false + context: "ci/angular: size" + # options for the merge plugin merge: # the status will be added to your pull requests