forked from mendhak/gpslogger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (24 loc) · 787 Bytes
/
.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
language: android
android:
components:
- build-tools-20.0.0
jdk: oraclejdk7
notifications:
email: false
env:
matrix:
- ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
before_install:
- export TERM=dumb
- gradle --version
before_script:
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- adb wait-for-device
- adb shell input keyevent 82 &
- adb devices
script:
# Performs tests (which will do a ./gradlew build task first)
# Skips the uninstallAll task as it's always a fresh emulator
# Does a logcat dump if anything fails
- ./gradlew connectedAndroidTest -x uninstallAll -PtestSize=small --info || (adb logcat -d && echo "TESTS FAILED" && exit 1)