[ios] Trigger mobile metrics tests (#14061)

This commit is contained in:
Julian Rex
2019-03-07 14:34:03 -05:00
committed by GitHub
parent 86e44bf5d6
commit 9283f3f8df

View File

@@ -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