diff options
author | Lukacs Berki <lberki@google.com> | 2015-09-03 13:28:55 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2015-09-03 14:42:20 +0000 |
commit | 678ba23b556cd7be99c29276a212d1bd506c4fff (patch) | |
tree | 8e1b457d540715d0180b633188f6d0dff7f16c07 /compile.sh | |
parent | 494eca9cf1ad0b1baeebb8a1f05cd0f9b69d03fb (diff) |
Add an integration test for Android rules.
Currently only building them is tested, not running them or mobile-install, but it's still a good start.
--
MOS_MIGRATED_REVID=102237496
Diffstat (limited to 'compile.sh')
-rwxr-xr-x | compile.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh index 1b2af73803..3f7a27d4f6 100755 --- a/compile.sh +++ b/compile.sh @@ -161,6 +161,11 @@ fi if [ $DO_TESTS ]; then new_step "Running tests" display "." + + if grep -sq '^ *actual = "//:dummy"' WORKSPACE; then + display "$WARNING Android SDK or NDK are not set in the WORKSPACE file. Android tests will not be run." + fi + [ -n "$JAVAC_VERSION" ] || get_java_version if [[ ! "${BAZEL_TEST_FILTERS-}" =~ "-jdk8" ]] \ && [ "8" -gt ${JAVAC_VERSION#*.} ]; then |