Jeff Gaston | 8c4ff1d | 2019-09-24 14:49:51 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | set -e |
| 3 | |
Jeff Gaston | 868c502 | 2020-06-16 17:32:18 -0400 | [diff] [blame] | 4 | echo "Starting $0 at $(date)" |
| 5 | |
Jeff Gaston | 668fb36 | 2020-01-10 18:20:48 -0500 | [diff] [blame] | 6 | cd "$(dirname $0)" |
Jeff Gaston | 8c4ff1d | 2019-09-24 14:49:51 -0400 | [diff] [blame] | 7 | |
Jeff Gaston | 4dff6e1c | 2021-04-15 11:24:37 -0400 | [diff] [blame] | 8 | EXIT_VALUE=0 |
Jeff Gaston | 46676e3 | 2020-01-15 16:28:34 -0500 | [diff] [blame] | 9 | |
Alan Viverette | fc33355 | 2021-11-18 17:07:04 -0500 | [diff] [blame] | 10 | # Validate translation exports, if present |
| 11 | if ! impl/check_translations.sh; then |
| 12 | EXIT_VALUE=1 |
| 13 | else |
| 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 |
| 25 | fi |
Jeff Gaston | 868c502 | 2020-06-16 17:32:18 -0400 | [diff] [blame] | 26 | |
Jeff Gaston | 4dff6e1c | 2021-04-15 11:24:37 -0400 | [diff] [blame] | 27 | echo "Completing $0 at $(date) with exit value $EXIT_VALUE" |
| 28 | |
| 29 | exit "$EXIT_VALUE" |