aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/bootstrap/buildenv.sh
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2015-09-04 12:46:23 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2015-09-04 12:53:36 +0000
commitdbf5cadd3afdfa9aef7d2930aed4cdcd3304b2b4 (patch)
treeea8d41e8778ebf38298756c388b399bb6074cade /scripts/bootstrap/buildenv.sh
parenta22f161d904c19169e45529d9262bda4b0c15c91 (diff)
Setup the ci build to test also Android tests when available
With this script, the easiest way to run the test suite is now: bash -c "export ANDROID_SDK_PATH=$HOME/bin/android-sdk-linux; \ export ANDROID_NDK_PATH=$HOME/bin/android-ndk-r10e; \ source ./scripts/ci/build.sh; \ bazel_build output/ci" -- MOS_MIGRATED_REVID=102334239
Diffstat (limited to 'scripts/bootstrap/buildenv.sh')
-rwxr-xr-xscripts/bootstrap/buildenv.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/bootstrap/buildenv.sh b/scripts/bootstrap/buildenv.sh
index ab4dbeaaa7..be2cfa1db1 100755
--- a/scripts/bootstrap/buildenv.sh
+++ b/scripts/bootstrap/buildenv.sh
@@ -134,3 +134,9 @@ function get_java_version() {
fail "Cannot determine JDK version, please set \$JAVA_HOME."
fi
}
+
+# Return the target that a bind point to, using Bazel query.
+function get_bind_target() {
+ $BAZEL --bazelrc=${BAZELRC} --nomaster_bazelrc test \
+ query "deps($1, 1) - $1"
+}