forked from android-async-http/android-async-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
branches: | ||
only: | ||
- master | ||
language: | ||
- java | ||
jdk: | ||
- openjdk6 | ||
before_install: | ||
# environment info | ||
- mvn -version | ||
- gradle -v | ||
- uname -a | ||
# required libs for android build tools | ||
- if [ `uname -m` = x86_64 ]; then sudo apt-get update; fi | ||
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch; fi | ||
# for gradle output style | ||
- export TERM=dumb | ||
# newer version of gradle | ||
- wget http://services.gradle.org/distributions/gradle-1.8-bin.zip | ||
- unzip -qq gradle-1.8-bin.zip | ||
- export GRADLE_HOME=$PWD/gradle-1.8 | ||
- export PATH=$GRADLE_HOME/bin:$PATH | ||
# just to test gradle version, against our provided one | ||
- gradle -v | ||
# newest android SDK 22.0.5 | ||
- wget http://dl.google.com/android/android-sdk_r22.0.5-linux.tgz | ||
- tar -zxf android-sdk_r22.0.5-linux.tgz | ||
- export ANDROID_HOME=`pwd`/android-sdk-linux | ||
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools | ||
# manually set sdk.dir variable, according to local paths | ||
- echo "sdk.dir=$ANDROID_HOME" > local.properties | ||
- echo yes | android update sdk -t tools,platform-tools,extra-android-support,extra-android-m2repository,android-18 --force --no-ui | ||
# build tools cannot be installed through "android update sdk" as of now | ||
- wget http://dl.google.com/android/repository/build-tools_r18.0.1-linux.zip | ||
- mkdir -p $ANDROID_HOME/build-tools | ||
- unzip -qq build-tools_r18.0.1-linux.zip -d $ANDROID_HOME/build-tools/ | ||
- mv $ANDROID_HOME/build-tools/android-4.3 $ANDROID_HOME/build-tools/18.0.1 | ||
# verify files exist in right paths | ||
- find $ANDROID_HOME/build-tools | ||
- file $ANDROID_HOME/build-tools/18.0.1/aapt | ||
# - mvn clean test install |