Skip to content

Commit

Permalink
Trigger memory metrics build on CircleCI (#9622)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Hamley authored Apr 24, 2020
1 parent 459566a commit 8d54d00
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8d54d00

Please sign in to comment.