From 9283f3f8df9dc4f9447ce959c961414c5c659d6e Mon Sep 17 00:00:00 2001 From: Julian Rex Date: Thu, 7 Mar 2019 14:34:03 -0500 Subject: [PATCH] [ios] Trigger mobile metrics tests (#14061) --- circle.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/circle.yml b/circle.yml index d8a2ed884..09a6be31c 100644 --- a/circle.yml +++ b/circle.yml @@ -969,6 +969,16 @@ jobs: - run: name: Record size command: platform/ios/scripts/metrics.sh + - run: + name: Trigger metrics + command: | + if [[ $CIRCLE_BRANCH == master ]]; then + if [ -n "${MOBILE_METRICS_TOKEN}" ]; then + curl -u $MOBILE_METRICS_TOKEN -d build_parameters[CIRCLE_JOB]=ios-maps-benchmark https://circleci.com/api/v1.1/project/github/mapbox/mobile-metrics/tree/master + else + echo "MOBILE_METRICS_TOKEN not provided" + fi + fi - save-dependencies - collect-xcode-build-logs - upload-xcode-build-logs