-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (39 loc) · 1.71 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
language: android
android:
components:
# The BuildTools version used by your project (make sure it's exactly the same as in the build.gradle)
- build-tools-29.0.3
# The SDK version used to compile your project
- android-29
# The SDK version used by the system image
- android-24
# - android-22
# The system image, to run an emulator during the tests
# - sys-img-armeabi-v7a-android-22
- sys-img-armeabi-v7a-android-24
# - sys-img-armeabi-v7a-google_apis-25
before_install:
- chmod +x ./gradlew
before_script:
# Emulator Management: Create, Start and Wait
# - echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a
# - echo no | android create avd --force -n test -t android-25 --abi google_apis/armeabi-v7a
- emulator -avd test -no-window &
- 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
# This should be in the `before_script` entry
# Set up Code Climate test reporter
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- ./gradlew build connectedCheck jacocoTestReport
after_script:
# Report test coverage to Code Climate
- export JACOCO_SOURCE_PATH=app/src/main/java/
- ./cc-test-reporter format-coverage ./app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml --input-type jacoco
- ./cc-test-reporter upload-coverage