forked from saturday06/gradle-android-scala-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
33 lines (29 loc) · 1.02 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
language: java
jdk: oraclejdk7
sudo: false
addons:
apt:
packages:
- expect
- lib32z1
- libstdc++6:i386
env:
- TERM=dumb # to get clean gradle output
before_install:
# Install base Android SDK
- export COMPONENTS=build-tools-22.0.1,android-22,android-18,sys-img-armeabi-v7a-android-18,extra-google-m2repository,extra-android-m2repository,extra-android-support
- curl -L https://raw.github.com/embarkmobile/android-sdk-installer/version-2/android-sdk-installer | bash /dev/stdin --install=$COMPONENTS
- source ~/.android-sdk-installer/env
# Create and start emulator
- echo no | android create avd --force -n test -t android-18 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window -memory 512 -wipe-data > emulator.log 2>&1 &
- adb logcat > logcat.log &
- wait_for_emulator
script:
- ./gradlew --debug check
- ./gradlew --debug uploadArchives
- ./gradlew --stop
- ./gradlew --debug integTest
after_failure:
- cat emulator.log
- cat logcat.log