From 8d54d00f8b5f7097f7a6e9bde7b42862a73e6f5e Mon Sep 17 00:00:00 2001 From: Ryan Hamley Date: Fri, 24 Apr 2020 09:56:38 -0700 Subject: [PATCH] Trigger memory metrics build on CircleCI (#9622) --- .circleci/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 51cb3e1dd8f..ae559eb988a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -157,6 +157,14 @@ jobs: - run: yarn run build-style-spec - run: yarn run build-flow-types - run: yarn run test-build + - deploy: + name: Trigger memory metrics when merging to master + command: | + if [ -n "${WEB_METRICS_TOKEN}" ]; then + if [[ $CIRCLE_BRANCH == master ]]; then + curl -X POST https://circleci.com/api/v1.1/project/github/mapbox/web-metrics/build?circle-token=${WEB_METRICS_TOKEN} + fi + fi - store_artifacts: path: "dist" - store_artifacts: