blob: 229170c9bba868fca154bc6afb6474645704c2e1 [file] [log] [blame]
Jeff Gaston8c4ff1d2019-09-24 14:49:51 -04001#!/bin/bash
2set -e
3
Jeff Gaston868c5022020-06-16 17:32:18 -04004echo "Starting $0 at $(date)"
5
Jeff Gaston668fb362020-01-10 18:20:48 -05006cd "$(dirname $0)"
Jeff Gaston8c4ff1d2019-09-24 14:49:51 -04007
Jeff Gaston46676e32020-01-15 16:28:34 -05008# Run Gradle
Jeff Gaston4dff6e1c2021-04-15 11:24:37 -04009EXIT_VALUE=0
10if impl/build.sh buildOnServer checkExternalLicenses listTaskOutputs validateAllProperties \
11 --profile "$@"; then
12 EXIT_VALUE=0
13else
14 EXIT_VALUE=1
15fi
Jeff Gaston46676e32020-01-15 16:28:34 -050016
Jeff Gaston46676e32020-01-15 16:28:34 -050017# Parse performance profile reports (generated with the --profile option above) and re-export the metrics in an easily machine-readable format for tracking
Jeff Gastonab4bb4d2020-08-31 11:25:06 -040018impl/parse_profile_htmls.sh
Jeff Gaston868c5022020-06-16 17:32:18 -040019
Jeff Gaston4dff6e1c2021-04-15 11:24:37 -040020echo "Completing $0 at $(date) with exit value $EXIT_VALUE"
21
22exit "$EXIT_VALUE"