fix travis build
This commit is contained in:
parent
4f5125cf22
commit
2a6f6c28a0
18
.travis.yml
18
.travis.yml
@ -12,23 +12,23 @@ before_install:
|
|||||||
# Install base Android SDK
|
# Install base Android SDK
|
||||||
- sudo apt-get update
|
- sudo apt-get update
|
||||||
- if [ `uname -m` = x86_64 ]; then sudo apt-get install --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch > /dev/null; fi
|
- if [ `uname -m` = x86_64 ]; then sudo apt-get install --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch > /dev/null; fi
|
||||||
- wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz
|
- wget http://dl.google.com/android/android-sdk_r23-linux.tgz
|
||||||
- tar xzf android-sdk_r22.3-linux.tgz
|
- tar xzf android-sdk_r23-linux.tgz
|
||||||
- export ANDROID_HOME=$PWD/android-sdk-linux
|
- export ANDROID_HOME=$PWD/android-sdk-linux
|
||||||
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
|
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
|
||||||
# install android build tools
|
# install android build tools
|
||||||
- wget https://dl-ssl.google.com/android/repository/build-tools_r19.1-linux.zip
|
- wget https://dl-ssl.google.com/android/repository/build-tools_r20-linux.zip
|
||||||
- unzip build-tools_r19.1-linux.zip -d $ANDROID_HOME
|
- unzip build-tools_r20-linux.zip -d $ANDROID_HOME
|
||||||
- mkdir -p $ANDROID_HOME/build-tools/
|
- mkdir -p $ANDROID_HOME/build-tools/
|
||||||
- mv $ANDROID_HOME/android-4.4.2 $ANDROID_HOME/build-tools/19.1.0
|
- mv $ANDROID_HOME/android-4.4W $ANDROID_HOME/build-tools/20.0.0
|
||||||
# Install required components.
|
# Install required components.
|
||||||
# For a full list, run `android list sdk -a --extended`
|
# 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).
|
# Note that sysimg-18 downloads the ARM, x86 and MIPS images (we should optimize this).
|
||||||
# Other relevant API's
|
# Other relevant API's
|
||||||
- echo yes | android update sdk --filter platform-tools --no-ui --force > /dev/null
|
- echo yes | android update sdk --filter platform-tools --no-ui --force
|
||||||
- echo yes | android update sdk --filter android-19 --no-ui --force > /dev/null
|
- echo yes | android update sdk --filter android-19 --no-ui --force
|
||||||
- echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null
|
- echo yes | android update sdk --filter extra-android-support --no-ui --force
|
||||||
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null
|
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force
|
||||||
# Create and start emulator
|
# Create and start emulator
|
||||||
#- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
|
#- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
|
||||||
#- emulator -avd test -no-skin -no-audio -no-window &
|
#- emulator -avd test -no-skin -no-audio -no-window &
|
||||||
|
Loading…
x
Reference in New Issue
Block a user