Android travis

Summary: Closes https://github.com/facebook/Sonar/pull/136

Reviewed By: danielbuechele

Differential Revision: D8735101

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 648756cf67f07abb6e0c80b677fa01bf5c5085b7
This commit is contained in:
Pritesh Nandgaonkar
2018-07-05 10:15:29 -07:00
committed by Facebook Github Bot
parent 53753801b0
commit 3833f061e2

View File

@@ -60,3 +60,38 @@ matrix:
- cd iOS/Sample
- xcodebuild -showsdks
- xcodebuild clean build -workspace Sample.xcworkspace -scheme Pods-Sample -sdk iphonesimulator11.4
- language: android
os: linux
android:
components:
- tools
- platform-tools
- build-tools-27.0.3
- android-27
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-27
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
before_install:
- yes | sdkmanager "platforms;android-27"
- echo "y" | sdkmanager "cmake;3.6.4111459"
- wget https://dl.google.com/android/repository/android-ndk-r17b-linux-x86_64.zip
- mkdir -p temp-android-ndk
- mv ./android-ndk-r17b-linux-x86_64.zip temp-android-ndk
- cd temp-android-ndk
- unzip android-ndk-r17b-linux-x86_64.zip
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r17b
- export PATH=${PATH}:${ANDROID_NDK_HOME}
- cd ../
script:
- ./gradlew :sample:build
after_success:
- rm -rf temp-android-ndk
after_failure:
- rm -rf temp-android-ndk