tryin travis
This commit is contained in:
parent
dac9b8adad
commit
da6c0608a2
35
.travis.yml
Normal file
35
.travis.yml
Normal file
@ -0,0 +1,35 @@
|
||||
# from https://github.com/Ruenzuo/android-cd-travis-example/blob/master/.travis.yml
|
||||
language: java
|
||||
jdk: openjdk7
|
||||
env:
|
||||
matrix:
|
||||
- ANDROID_SDKS=android-19 ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a _JAVA_OPTIONS="-Xss6m -Xmx1024m"
|
||||
#branches:
|
||||
# only:
|
||||
# - master
|
||||
before_install:
|
||||
- chmod +x gradlew
|
||||
# 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_r22.3-linux.tgz
|
||||
- tar xzf android-sdk_r22.3-linux.tgz
|
||||
- export ANDROID_HOME=$PWD/android-sdk-linux
|
||||
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
|
||||
# install android build tools
|
||||
- wget https://dl-ssl.google.com/android/repository/build-tools_r19.0.1-linux.zip
|
||||
- unzip build-tools_r19.0.1-linux.zip -d $ANDROID_HOME
|
||||
- mkdir -p $ANDROID_HOME/build-tools/
|
||||
- mv $ANDROID_HOME/android-4.4.2 $ANDROID_HOME/build-tools/19.0.1
|
||||
# Install required components.
|
||||
# For a full list, run `android list sdk -a --extended`
|
||||
# Note that sysimg-18 downloads the ARM, x86 and MIPS images (we should optimize this).
|
||||
# Other relevant API's
|
||||
- echo yes | android update sdk --filter platform-tools --no-ui --force > /dev/null
|
||||
- echo yes | android update sdk --filter android-19 --no-ui --force > /dev/null
|
||||
#- echo yes | android update sdk --filter sysimg-18 --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
|
||||
# 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 &
|
Loading…
x
Reference in New Issue
Block a user