-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (59 loc) · 1.84 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
sudo: required
dist: trusty
language: android
jdk: oraclejdk8
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
env:
global:
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- ANDROID_COMPILE=28
- ADB_INSTALL_TIMEOUT=15 # minutes (2 minutes by default)
- GRADLE_OPTS="-Xmx1024m"
matrix:
- ANDROID_EMULATOR=21 ANDROID_ABI=armeabi-v7a
# This is the only working config for now
android:
components:
- tools # to get the new `repository-11.xml`
- tools # to install Android SDK tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
# - android-$ANDROID_EMULATOR
- android-$ANDROID_COMPILE
- sys-img-armeabi-v7a-google_apis-21
- extra-google-m2repository
- extra-android-m2repository
# Google Play Services
- extra-google-google_play_services
# Support library
- extra-android-support
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_install:
- chmod +x gradlew
#comment out this, when UI test will be relevant
#before_script:
# - echo no | android create avd --force -n test -t android-$ANDROID_EMULATOR --abi google_apis/$ANDROID_ABI
# - emulator -avd test -no-skin -no-window -qemu -m 512 &
script:
- ./gradlew build detekt
#comment out this, when UI test will be relevant
# - android-wait-for-emulator
# - adb shell settings put global window_animation_scale 0 &
# - adb shell settings put global transition_animation_scale 0 &
# - adb shell settings put global animator_duration_scale 0 &
# - adb shell input keyevent 82 &
# - ./gradlew connectedCheck
after_success:
- ./gradlew jacocoTestReport coveralls
notifications:
email: false