forked from scala-android/sbt-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (52 loc) · 1.72 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
language: android
sudo: required
os:
- linux
jdk:
- oraclejdk8
env:
global:
- ANDROID_EMU_API_LEVEL=24
- ANDROID_API_LEVEL=26
- ANDROID_BUILD_TOOLS_VERSION=26.0.1
- ANDROID_ABI=armeabi-v7a
- NDK_VERSION=r11c
- ANDROID_NDK_HOME=$HOME/android-ndk-$NDK_VERSION
- QEMU_AUDIO_DRV=none # Remove audio
cache:
directories:
- $HOME/.m2/repository
- $HOME/.sbt
- $HOME/.ivy2/cache
before_cache:
- du -h -d 1 $HOME/.ivy2/cache
- du -h -d 2 $HOME/.sbt/
- rm -fv $HOME/.ivy2/.sbt.ivy.lock
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
android:
components:
- tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- android-$ANDROID_API_LEVEL
- android-$ANDROID_EMU_API_LEVEL
- sys-img-$ANDROID_ABI-android-$ANDROID_EMU_API_LEVEL
- extra
before_script:
# Emulator Management: Create, Start and Wait
- echo no | android create avd --force -n test -t android-$ANDROID_EMU_API_LEVEL --abi $ANDROID_ABI
- emulator -avd test -no-window &
# install & cache NDK
- curl https://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux-x86_64.zip -z ${ANDROID_NDK_HOME}/ndk-build -o $HOME/ndk-${NDK_VERSION}.zip
- (unzip -q $HOME/ndk-$NDK_VERSION.zip -d $HOME; true)
- ls $ANDROID_NDK_HOME
# wait for emulator after ndk
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- curl -o sbt-launcher.sh https://raw.githubusercontent.com/paulp/sbt-extras/master/sbt
- chmod a+x ./sbt-launcher.sh
- ./sbt-launcher.sh publish-local
- ./sbt-launcher.sh gradlebuild/publish-local
- ./sbt-launcher.sh "scripted android-sdk-plugin/* gradle-build/*"