Add iOS build task

This commit is contained in:
Emily Toop 2018-08-07 17:41:47 +01:00
parent 5e2e381125
commit a5fd51f6be

View file

@ -51,35 +51,6 @@ matrix:
script: script:
- ./scripts/cargo_test.sh - ./scripts/cargo_test.sh
cache: cargo cache: cargo
- language: rust
dist: trusty
rust: stable
jdk:
- oraclejdk8
env:
# Get revision number from https://dl.google.com/android/repository/repository2-1.xml
# Look for the string 'sdk-tools-linux-'.
- ANDROID_SDK_VERSION=4333796
before_install:
- >
PKG_OS="$TRAVIS_OS_NAME";
export ANDROID_HOME="${HOME}/android-sdk";
export PATH=$PATH:"${ANDROID_HOME}/tools/bin";
mkdir $ANDROID_HOME
install:
# SDK Tools.
- >
curl -o sdk.zip "https://dl.google.com/android/repository/sdk-tools-${PKG_OS}-${ANDROID_SDK_VERSION}.zip" &&
unzip -q sdk.zip -d $ANDROID_HOME; > /dev/null
# Android SDK and NDK
# Unfortunately we need to get rid of all output, otherwise it can easily fill up the 4 MB log limit
- yes | sdkmanager --licenses > /dev/null
- sdkmanager 'platform-tools' 'build-tools;27.0.0' 'platforms;android-27' 'ndk-bundle' > /dev/null
script:
- cd sdks/android/Mentat
- ./gradlew --no-daemon clean :library:assemble :library:test :library:lint
- cd ../../..
- language: rust - language: rust
dist: trusty dist: trusty
rust: stable rust: stable