This repository has been archived by the owner on Apr 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 176
/
.travis.yml
63 lines (56 loc) · 2.32 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# from https://github.com/Ruenzuo/android-cd-travis-example/blob/master/.travis.yml
language: java
jdk:
- openjdk7
env:
matrix:
- ANDROID_SDKS=android-21 ANDROID_TARGET=android-21 ANDROID_ABI=armeabi-v7a
branches:
only:
- master
before_install:
- chmod +x gradlew
# Install base Android SDK
- 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
- wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
- tar xzf android-sdk_r23.0.2-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_r22-linux.zip
- unzip build-tools_r22-linux.zip -d $ANDROID_HOME
- mkdir -p $ANDROID_HOME/build-tools/
- mv $ANDROID_HOME/android-5.1 $ANDROID_HOME/build-tools/22
# 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
- echo yes | android update sdk --filter android-21 --no-ui --force
- echo yes | android update sdk --filter extra-android-support --no-ui --force
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force
# 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 &
# language: android
# android:
# components:
# # Uncomment the lines below if you want to
# # use the latest revision of Android SDK Tools
# - platform-tools
# - tools
# # The BuildTools version used by your project
# # - build-tools-21.0.1
# # The SDK version used to compile your project
# - android-21
# # Additional components
# - extra-android-support
# # - extra-google-google_play_services
# - extra-google-m2repository
# - extra-android-m2repository
# - addon-google_apis-google-21
# # Specify at least one system image,
# # if you need to run emulator(s) during your tests
# #- sys-img-armeabi-v7a-android-19
# #- sys-img-x86-android-17