Skip to content

Commit

Permalink
travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
daimajia committed Jul 5, 2014
1 parent e9b5b5b commit 733dfc1
Showing 1 changed file with 28 additions and 16 deletions.
44 changes: 28 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
language: android
android:
components:
- build-tools-20

notifications:
email: true
language: java
jdk: oraclejdk7
env:
matrix:
- ANDROID_TARGET=android-20 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_r23-linux.tgz
- tar xzf android-sdk_r23-linux.tgz
- export ANDROID_HOME=$PWD/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools

# for gradle output style
- export TERM=dumb

# environment info
- ./gradlew -v
- uname -a
# Gradle
- wget http://services.gradle.org/distributions/gradle-1.12-bin.zip
- unzip gradle-1.12-bin.zip
- export GRADLE_HOME=$PWD/gradle-1.12
- export PATH=$GRADLE_HOME/bin:$PATH

# Let's try to build...
#install: ./gradlew clean build
# 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-20.0.0 --no-ui --force > /dev/null
- echo yes | android update sdk --filter android-20 --no-ui --force > /dev/null
- echo yes | android update sdk --filter sys-img-x86-android-19 --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

script: ./gradlew clean build
install:
- ./gradlew assemble

0 comments on commit 733dfc1

Please sign in to comment.