From a5ecc301ecfbd51912cf1a8c5548bf9c0e64a245 Mon Sep 17 00:00:00 2001 From: ctiao Date: Mon, 15 Jun 2015 15:20:08 +0800 Subject: [PATCH] update .travis.yml --- .travis.yml | 38 ++++++++++++--------------------- DanmakuFlameMaster/build.gradle | 6 +++--- Sample/build.gradle | 6 +++--- 3 files changed, 20 insertions(+), 30 deletions(-) diff --git a/.travis.yml b/.travis.yml index 35442b9e..5322f531 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,29 +1,19 @@ -language: java -jdk: - - oraclejdk7 - - openjdk7 - - openjdk6 +language: android +jdk: oraclejdk7 +env: + matrix: + - ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a -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 ia32-libs ia32-libs-multiarch > /dev/null; fi - - wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz - - tar xzf android-sdk_r24.2-linux.tgz - - export ANDROID_HOME=$PWD/android-sdk-linux - - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools +android: + components: + - build-tools-19.1.0 - # Install required components. - # For a full list, run `android list sdk -a --extended` - # Note that sysimg-19 downloads only ARM, because only the first license query is accepted. - - echo yes | android update sdk --filter platform-tools --no-ui --force > /dev/null - - echo yes | android update sdk --all --filter build-tools-22.0.1 --no-ui --force > /dev/null - - echo yes | android update sdk --filter android-22 --no-ui --force > /dev/null - - echo yes | android update sdk --filter sysimg-22 --no-ui --force > /dev/null - - echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null - - echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null - - - chmod +x gradlew +before_script: + # Create and start emulator + - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI + - emulator -avd test -no-skin -no-audio -no-window & + - adb wait-for-device + - adb shell input keyevent 82 & script: "./gradlew check -i" diff --git a/DanmakuFlameMaster/build.gradle b/DanmakuFlameMaster/build.gradle index ac8c4da8..6891a8d3 100644 --- a/DanmakuFlameMaster/build.gradle +++ b/DanmakuFlameMaster/build.gradle @@ -19,12 +19,12 @@ apply plugin: 'com.android.library' def SourcePath = 'src/main/' android { - compileSdkVersion 22 - buildToolsVersion "22.0.1" + compileSdkVersion 19 + buildToolsVersion '19.1.0' defaultConfig { minSdkVersion 7 - targetSdkVersion 22 + targetSdkVersion 19 versionName VERSION_NAME versionCode Integer.parseInt(VERSION_CODE) } diff --git a/Sample/build.gradle b/Sample/build.gradle index 14010779..9a4d984e 100644 --- a/Sample/build.gradle +++ b/Sample/build.gradle @@ -20,12 +20,12 @@ dependencies { compile project(':DanmakuFlameMaster') } android { - compileSdkVersion 22 - buildToolsVersion "22.0.1" + compileSdkVersion 19 + buildToolsVersion "19.1.0" defaultConfig { minSdkVersion 7 - targetSdkVersion 22 + targetSdkVersion 19 versionCode 1 versionName "1.0" }