blob: 5c5f28b0e3a89f5e6b3cd90835231ac607d2875c [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 Gaston4dff6e1c2021-04-15 11:24:37 -04008EXIT_VALUE=0
Jeff Gaston46676e32020-01-15 16:28:34 -05009
Alan Viverettefc333552021-11-18 17:07:04 -050010# Validate translation exports, if present
11if ! impl/check_translations.sh; then
12 EXIT_VALUE=1
13else
14 # Run Gradle
15 if ! impl/build.sh buildOnServer checkExternalLicenses listTaskOutputs validateAllProperties \
16 -Pandroidx.enableComposeCompilerMetrics=true \
17 -Pandroidx.enableComposeCompilerReports=true \
18 --profile "$@"; then
19 EXIT_VALUE=1
20 fi
21
22 # Parse performance profile reports (generated with the --profile option above) and re-export
23 # the metrics in an easily machine-readable format for tracking
24 impl/parse_profile_htmls.sh
25fi
Jeff Gaston868c5022020-06-16 17:32:18 -040026
Jeff Gaston4dff6e1c2021-04-15 11:24:37 -040027echo "Completing $0 at $(date) with exit value $EXIT_VALUE"
28
29exit "$EXIT_VALUE"