From 5a15b9ef086f7af7b286ce56828233636e18dc4f Mon Sep 17 00:00:00 2001 From: Christian Edward Gruber Date: Wed, 12 Jun 2013 11:40:34 -0700 Subject: [PATCH 1/2] A configuration to permit travis to install the android SDK before running continuous build. --- .travis.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index bbfcc54fd5a..611369b1f77 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,22 @@ language: java -install: mvn install clean -P!android --fail-never --quiet -DskipTests=true -Dinvoker.skip=true -script: mvn verify -P!android +jdk: + - oraclejdk7 + - openjdk7 + +before_install: + - sudo apt-get update -qq + - if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch; fi + - wget http://dl.google.com/android/android-sdk_r21.0.1-linux.tgz + - echo "Installing android SDK into ${PWD}/android-sdk-linux" + - tar -xzf android-sdk_r21.0.1-linux.tgz + - export ANDROID_HOME=${PWD}/android-sdk-linux + - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools + - android update sdk --filter platform-tools,android-16,extra-android-support,android-17,sysimg-17 --no-ui --force + +install: mvn install clean --fail-never --quiet -DskipTests=true -Dinvoker.skip=true + +script: mvn verify notifications: email: false From d6ab94a87fa872cd11c108ce552743f78ab16f32 Mon Sep 17 00:00:00 2001 From: Christian Edward Gruber Date: Wed, 12 Jun 2013 12:55:50 -0700 Subject: [PATCH 2/2] Reduce the set of things needed for building the android examples. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 611369b1f77..2420f982312 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ before_install: - tar -xzf android-sdk_r21.0.1-linux.tgz - export ANDROID_HOME=${PWD}/android-sdk-linux - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools - - android update sdk --filter platform-tools,android-16,extra-android-support,android-17,sysimg-17 --no-ui --force + - android update sdk --filter platform-tools,android-16 --no-ui --force install: mvn install clean --fail-never --quiet -DskipTests=true -Dinvoker.skip=true