1
0
mirror of https://gitlab.shinice.net/pixeldroid/PixelDroid synced 2024-12-19 19:56:52 +01:00
PixelDroid-App-Android/.travis.yml

30 lines
1.2 KiB
YAML
Raw Normal View History

2020-02-28 00:41:05 +01:00
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
2020-02-28 17:08:54 +01:00
- android-23
2020-02-28 00:41:05 +01:00
# The system image, to run an emulator during the tests
2020-02-28 17:08:54 +01:00
- sys-img-armeabi-v7a-android-23
2020-02-28 00:41:05 +01:00
before_script:
# Emulator Management: Create, Start and Wait
2020-02-28 17:08:54 +01:00
- echo no | android create avd --force -n test -t android-23 --abi armeabi-v7a
2020-02-28 17:41:54 +01:00
- export QEMU_AUDIO_DRV=none && emulator -avd test -no-window &
2020-02-28 00:41:05 +01:00
- android-wait-for-emulator
- adb shell input keyevent 82
2020-02-28 01:03:49 +01:00
# 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
2020-02-28 01:03:49 +01:00
- ./cc-test-reporter upload-coverage