-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
26 lines (21 loc) · 1.07 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
language: java
# Install our dependencies
before_install:
# Copy template passwords file to local file
- cp "passes.template.xml" "passes.local.xml"
# Don't mess with the main repository
- export MAIN_REPO="$(pwd)"
- cd ..
# Get some shared libs or else the SDK executables aren't found
- sudo apt-get update -qq
- sudo apt-get install -qq ia32-libs ia32-libs-multiarch libgphoto2-2:i386 libsane:i386 libgd2-xpm:i386
# Install what we need from the SDK
- wget -O android-sdk-linux.tgz http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
- tar xzf android-sdk-linux.tgz
- export ANDROID_HOME="$(pwd)/android-sdk-linux"
- export PATH="${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools"
# Partition downloads into licence groups, otherwise `echo "y"` doesn't work
- echo "y" | android update sdk --all --no-ui --force --filter build-tools-21.1.0,android-21,platform-tools,extra-android-support
- echo "y" | android update sdk --all --no-ui --force --filter extra-android-m2repository
# Come back into main repository
- cd ${MAIN_REPO}