From 5d01372cd1e28745adb3ec3e56cac3c4a263685c Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Sat, 13 Jun 2015 22:30:57 +0200 Subject: [PATCH] try travis with android lang type --- .travis.yml | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9c05e3edb..abbd49614 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,20 @@ -language: java +language: android jdk: openjdk7 -before_install: - # Install base Android SDK - - sudo apt-get update -qq - - if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm lib32z1 lib32stdc++6; fi - - wget http://dl.google.com/android/android-sdk_r24.1.2-linux.tgz - - tar xzf android-sdk_r24.1.2-linux.tgz - - export ANDROID_HOME=$PWD/android-sdk-linux - - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools - - # Install required Android components. - #- echo "y" | android update sdk -a --filter build-tools-19.1.0,android-19,platform-tools,extra-android-support,extra-android-m2repository --no-ui --force - - ( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk --no-ui --all --force --filter build-tools-22.0.1,build-tools-21.1.2,build-tools-21.1.1,build-tools-19.1.0,android-22,android-21,android-19,platform-tools,extra-android-support,extra-android-m2repository -install: echo "Installation done" +android: + components: + - build-tools-22.0.1 + - build-tools-21.1.2 + - build-tools-21.1.1 + - build-tools-19.1.0 + - android-22 + - android-21 + - android-19 + - platform-tools + - extra-android-support + - extra-android-m2repository + licenses: + - 'android-sdk-preview-license-52d11cd2' + - 'android-sdk-license-.+' + - 'google-gdk-license-.+' script: - ./gradlew testDebug jacocoTestReport coveralls --info -