Skip to content

Commit

Permalink
update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiao committed Jun 15, 2015
1 parent c767793 commit a5ecc30
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 30 deletions.
38 changes: 14 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions DanmakuFlameMaster/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
6 changes: 3 additions & 3 deletions Sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit a5ecc30

Please sign in to comment.