travis: Add build of the Android app

This commit is contained in:
Tobias Brunner
2020-06-02 14:42:38 +02:00
parent eadba6d225
commit 763f07c531
2 changed files with 42 additions and 0 deletions
+14
View File
@@ -205,6 +205,14 @@ win*)
;;
esac
;;
android)
DEPS="$DEPS openjdk-8-jdk"
if test "$1" = "deps"; then
git clone git://git.strongswan.org/android-ndk-boringssl.git -b ndk-static \
src/frontends/android/app/src/main/jni/openssl
fi
TARGET=distdir
;;
osx)
# this causes a false positive in ip-packet.c since Xcode 8.3
CFLAGS="$CFLAGS -Wno-address-of-packed-member"
@@ -449,6 +457,12 @@ sonarcloud)
-Dsonar.cfamily.build-wrapper-output=bw-output || exit $?
rm -r bw-output .scannerwork
;;
android)
rm -r strongswan-*
cd src/frontends/android
echo "$ ./gradlew build"
NDK_CCACHE=ccache ./gradlew build
;;
*)
;;
esac