Aurimas Liutikas | 222577c | 2020-05-01 17:21:57 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | set -e |
| 3 | |
| 4 | cd "$(dirname $0)/../../" |
| 5 | SCRIPT_DIR="$(pwd)" |
| 6 | echo "Script running from $(pwd)" |
| 7 | |
| 8 | # resolve DIST_DIR |
| 9 | if [ -z "$DIST_DIR" ]; then |
| 10 | DIST_DIR="$SCRIPT_DIR/out/dist" |
| 11 | fi |
| 12 | mkdir -p "$DIST_DIR" |
| 13 | |
| 14 | export OUT_DIR=out |
| 15 | export DIST_DIR="$DIST_DIR" |
| 16 | |
Aurimas Liutikas | c1f1d87 | 2020-11-16 21:54:51 +0000 | [diff] [blame] | 17 | JAVA_HOME="$(pwd)/prebuilts/studio/jdk/jdk11/linux" tools/gradlew -p tools/ publishLocal --stacktrace |
Aurimas Liutikas | 222577c | 2020-05-01 17:21:57 -0700 | [diff] [blame] | 18 | |
| 19 | export LINT_VERSION=`grep -oP "(?<=baseVersion = ).*" tools/buildSrc/base/version.properties` |
| 20 | export LINT_REPO="$(pwd)/out/repo" |
| 21 | |
Aurimas Liutikas | d2b2795 | 2022-02-24 01:21:11 +0000 | [diff] [blame] | 22 | # Integration build is broken, need to wait for Android Lint to ship to fix |
| 23 | #tools/gradlew -p tools/metalava \ |
| 24 | # --no-daemon \ |
| 25 | # --stacktrace \ |
| 26 | # --dependency-verification=off \ |
| 27 | # -PlintRepo=$LINT_REPO \ |
| 28 | # -PlintVersion=$LINT_VERSION |