1#!/bin/bash 2 3# Script that builds androidx SNAPSHOT and runs the androidx integration 4# tests from the Studio branch. 5 6set -e 7 8readonly SCRIPT_PATH="$(dirname $(realpath "$0"))" 9readonly BASE_PATH="$(realpath "$SCRIPT_PATH/../../..")" 10readonly PREBUILTS_DIR="$BASE_PATH/prebuilts" 11readonly OUT_DIR="$BASE_PATH/out" 12readonly BAZEL_CMD="$BASE_PATH/tools/base/bazel/bazel" 13readonly M2REPO_DIR="$PREBUILTS_DIR/tools/common/androidx-integration/m2repository" 14readonly ANDROIDX_INTERNAL_DIR="$PREBUILTS_DIR/androidx/internal" 15 16echo "Using basepath $BASE_PATH" 17 18echo "Starting $0 at $(date)" 19 20$SCRIPT_PATH/androidx_snapshot.sh 21 22mkdir -p $M2REPO_DIR 23# Copy internal and the output to prebuilts/tools/common/androidx-integration 24cp -R $ANDROIDX_INTERNAL_DIR/* $M2REPO_DIR 25unzip -quo $OUT_DIR/dist/top-of-tree-m2repository-all-*.zip -d $M2REPO_DIR/.. 26 27$BAZEL_CMD test //tools/adt/idea/androidx-integration-tests:intellij.android.androidx-integration-tests 28 29echo "Completing $0 at $(date)" 30 31