aboutsummaryrefslogtreecommitdiffhomepage
path: root/compile.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 /compile.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 'compile.sh')
-rwxr-xr-xcompile.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/compile.sh b/compile.sh
index 3f7a27d4f6..a5598ef20c 100755
--- a/compile.sh
+++ b/compile.sh
@@ -162,7 +162,8 @@ if [ $DO_TESTS ]; then
new_step "Running tests"
display "."
- if grep -sq '^ *actual = "//:dummy"' WORKSPACE; then
+ if [ "$(get_bind_target //external:android_ndk_repository)" = "//:dummy"
+ -o "$(get_bind_target //external:android_sdk_repository)" = "//:dummy" ]; then
display "$WARNING Android SDK or NDK are not set in the WORKSPACE file. Android tests will not be run."
fi