forked from streetcomplete/StreetComplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (52 loc) · 1.47 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
54
55
56
57
58
59
60
61
62
63
language: android
jdk: oraclejdk8
notifications:
email: false
android:
components:
- tools
- $API
- platform-tools
- tools
- build-tools-$ANDROID_BUILD_TOOLS
- android-$ANDROID_API
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository
- sys-img-$ABI-$API
licenses:
- ".+"
env:
global:
- ANDROID_BUILD_TOOLS=28.0.3
- ANDROID_API=28
matrix:
- API=android-24 ABI=armeabi-v7a
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
before_install:
- yes | sdkmanager "platforms;android-$ANDROID_API"
# Emulator Management: Create, Start and Wait
before_script:
- touch /home/travis/.android/emu-update-last-check.ini
- echo "y" | android update sdk -a --no-ui --filter $API
- echo "y" | android update sdk -a --no-ui --filter sys-img-$ABI-$API
- android list targets | grep -E '^id:' | awk -F '"' '{$1=""; print $2}'
- echo no | android create avd --force -n test -t $API --abi $ABI
- emulator -avd test -no-skin -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
- adb wait-for-device get-serialno
- cd ${TRAVIS_BUILD_DIR}
- chmod +x gradlew
- ./gradlew --version
- ./gradlew clean
script:
- ./gradlew testDebugUnitTest
- travis_wait 60 ./gradlew connectedDebugAndroidTest