forked from mendhak/gpslogger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (32 loc) · 1.05 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
sudo: false
language: android
android:
components:
- tools
- android-23
- build-tools-23.0.2
- extra-android-support
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
jdk: oraclejdk7
notifications:
email: false
#env:
# matrix:
# - ANDROID_TARGET=android-23 ANDROID_ABI=armeabi-v7a
before_install:
- ./gradlew --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)
# -Dpre-dex=false skips predex on travis, takes too long, too much memory
./gradlew testDebugUnitTest -Dpre-dex=false