-
Notifications
You must be signed in to change notification settings - Fork 0
/
shippable.yml
42 lines (34 loc) · 1.92 KB
/
shippable.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
language: java
jdk:
- oraclejdk7
before_install:
# From: http://developer.android.com/sdk/installing/index.html?pkg=tools
# If you are running a 64-bit distribution on your development machine, you need to install additional packages first
# install necessary x32-libs for Android SDK, see http://rkistner.github.io/android/2013/02/05/android-builds-on-travis-ci/
- sudo dpkg --add-architecture i386
- sudo apt-get update
- sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
# Download the latest android sdk and unzip
- wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
- tar -zxf android-sdk_r24.4.1-linux.tgz
- export ANDROID_HOME=`pwd`/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
# Update the sdk for the tools and platform-tools and required api level
# (run "android list sdk --extended" to get the full list)
# - echo y | android update sdk -a --filter tools,platform-tools,build-tools-23.0.2,android-23,extra-android-support,extra-android-m2repository,extra-google-m2repository --no-ui --force
- echo y | android update sdk -a --filter platform-tools --no-ui --force
- echo y | android update sdk -a --filter tools --no-ui --force
- echo y | android update sdk -a --filter build-tools-23.0.2 --no-ui --force
- echo y | android update sdk -a --filter android-23 --no-ui --force
- echo y | android update sdk -a --filter extra-android-m2repository --no-ui --force
- echo y | android update sdk -a --filter extra-google-m2repository --no-ui --force
- echo y | android update sdk -a --filter extra-google-google_play_services --no-ui --force
- echo y | android update sdk -a --filter extra-android-support --no-ui --force
install:
- ./gradlew clean build
before_script:
- mkdir -p shippable/testresults
script:
- ./gradlew test
after_script:
- find . -path \*build/test-results -exec cp -rfp {} shippable/testresults/ \;