diff options
author | Jack Lloyd <[email protected]> | 2019-07-04 05:44:18 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-07-04 06:30:05 -0400 |
commit | 9541d8f4c053f55edfc6b97fbf6c8e14d434364c (patch) | |
tree | d1522411d4fe873762a86180724c765f9685cfd4 /src/scripts/ci | |
parent | 61787c0dee73cad59912d15e151bc720095e7ee1 (diff) |
Build Android via NDK
Diffstat (limited to 'src/scripts/ci')
-rwxr-xr-x | src/scripts/ci/setup_travis.sh | 4 | ||||
-rw-r--r-- | src/scripts/ci/travis.yml | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/scripts/ci/setup_travis.sh b/src/scripts/ci/setup_travis.sh index fd13417c5..0ef505480 100755 --- a/src/scripts/ci/setup_travis.sh +++ b/src/scripts/ci/setup_travis.sh @@ -47,6 +47,10 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq update sudo apt-get install qemu-user g++-mips64-linux-gnuabi64 + elif [ "$BUILD_MODE" = "cross-android-arm32" -o "$BUILD_MODE" = "cross-android-arm64" ]; then + wget -nv https://dl.google.com/android/repository/"$ANDROID_NDK"-linux-x86_64.zip + unzip -qq "$ANDROID_NDK"-linux-x86_64.zip + elif [ "$BUILD_MODE" = "lint" ]; then sudo apt-get -qq update sudo apt-get install pylint diff --git a/src/scripts/ci/travis.yml b/src/scripts/ci/travis.yml index 83e642748..b14ef34a3 100644 --- a/src/scripts/ci/travis.yml +++ b/src/scripts/ci/travis.yml @@ -14,6 +14,7 @@ compiler: env: global: - CCACHE_MAXSIZE=800M + - ANDROID_NDK=android-ndk-r20 matrix: - BUILD_MODE="shared" @@ -27,6 +28,8 @@ env: - BUILD_MODE="cross-arm64" - BUILD_MODE="cross-mips64" - BUILD_MODE="cross-win64" + - BUILD_MODE="cross-android-arm32" + - BUILD_MODE="cross-android-arm64" - BUILD_MODE="gcc4.8" - BUILD_MODE="static" - BUILD_MODE="mini-shared" @@ -62,6 +65,7 @@ matrix: env: BUILD_MODE="docs" - compiler: clang env: BUILD_MODE="coverage" + - compiler: clang env: BUILD_MODE="fuzzers" - compiler: clang @@ -89,6 +93,18 @@ matrix: compiler: clang env: BUILD_MODE="cross-arm64" + # Android NDK is Linux only + - os: osx + env: BUILD_MODE="cross-android-arm32" + - os: osx + env: BUILD_MODE="cross-android-arm64" + - os: linux + compiler: gcc + env: BUILD_MODE="cross-android-arm32" + - os: linux + compiler: gcc + env: BUILD_MODE="cross-android-arm64" + install: - ./src/scripts/ci/setup_travis.sh |