blob: eedda4ec4da681ae01a55ccf369381ed53cd7e37 [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 Gastonab4bb4d2020-08-31 11:25:06 -04009impl/build.sh --no-daemon listTaskOutputs "$@"
10impl/build.sh allProperties "$@" >/dev/null
11impl/build.sh --no-daemon buildOnServer checkExternalLicenses \
Aurimas Liutikas2a9a1992020-04-02 14:51:01 -070012 -PverifyUpToDate \
Aurimas Liutikasedd82e72020-03-30 15:47:41 -070013 -Pandroidx.coverageEnabled=true \
Aurimas Liutikas2a9a1992020-04-02 14:51:01 -070014 -Pandroidx.allWarningsAsErrors --profile "$@"
Jeff Gaston46676e32020-01-15 16:28:34 -050015
16# Merge some output files
Jeff Gastonab4bb4d2020-08-31 11:25:06 -040017python3 impl/merge_outputs.py "mergeBuildInfo" "mergeLibraryMetrics" "mergeSourceJars"
Jeff Gaston46676e32020-01-15 16:28:34 -050018
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 Gastonab4bb4d2020-08-31 11:25:06 -040020impl/parse_profile_htmls.sh
Jeff Gaston868c5022020-06-16 17:32:18 -040021
22echo "Completing $0 at $(date)"