]> git.ipfire.org Git - people/ms/strongswan.git/blobdiff - scripts/test.sh
travis: Add build of the Android app
[people/ms/strongswan.git] / scripts / test.sh
index bba3a45a9739e2d2dff597ca1f02e39be11ea260..03170c86c0d1b315590a5ab0f7868ab93e97bc2f 100755 (executable)
@@ -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