| 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 | 46676e3 | 2020-01-15 16:28:34 -0500 | [diff] [blame] | 8 | # Run Gradle |
| Jeff Gaston | ab4bb4d | 2020-08-31 11:25:06 -0400 | [diff] [blame^] | 9 | impl/build.sh --no-daemon listTaskOutputs "$@" |
| 10 | impl/build.sh allProperties "$@" >/dev/null |
| 11 | impl/build.sh --no-daemon buildOnServer checkExternalLicenses \ |
| Aurimas Liutikas | 2a9a199 | 2020-04-02 14:51:01 -0700 | [diff] [blame] | 12 | -PverifyUpToDate \ |
| Aurimas Liutikas | edd82e7 | 2020-03-30 15:47:41 -0700 | [diff] [blame] | 13 | -Pandroidx.coverageEnabled=true \ |
| Aurimas Liutikas | 2a9a199 | 2020-04-02 14:51:01 -0700 | [diff] [blame] | 14 | -Pandroidx.allWarningsAsErrors --profile "$@" |
| Jeff Gaston | 46676e3 | 2020-01-15 16:28:34 -0500 | [diff] [blame] | 15 | |
| 16 | # Merge some output files |
| Jeff Gaston | ab4bb4d | 2020-08-31 11:25:06 -0400 | [diff] [blame^] | 17 | python3 impl/merge_outputs.py "mergeBuildInfo" "mergeLibraryMetrics" "mergeSourceJars" |
| Jeff Gaston | 46676e3 | 2020-01-15 16:28:34 -0500 | [diff] [blame] | 18 | |
| 19 | # Parse performance profile reports (generated with the --profile option above) and re-export the metrics in an easily machine-readable format for tracking |
| Jeff Gaston | ab4bb4d | 2020-08-31 11:25:06 -0400 | [diff] [blame^] | 20 | impl/parse_profile_htmls.sh |
| Jeff Gaston | 868c502 | 2020-06-16 17:32:18 -0400 | [diff] [blame] | 21 | |
| 22 | echo "Completing $0 at $(date)" |