forked from tasks/tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (33 loc) · 1021 Bytes
/
.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
language: android
sudo: required
jdk: oraclejdk8
env:
global:
- TARGET_API=27
- BUILD_TOOLS=27.0.3
matrix:
- EMULATOR_API=21 ANDROID_ABI=armeabi-v7a
android:
components:
- tools # https://github.com/travis-ci/travis-ci/issues/5049
- tools # https://github.com/travis-ci/travis-ci/issues/6040
- android-$TARGET_API
- android-$EMULATOR_API
- sys-img-$ANDROID_ABI-android-$EMULATOR_API
- platform-tools
- build-tools-$BUILD_TOOLS
- extra-android-m2repository
- extra-google-m2repository
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
before_install:
- echo no | android create avd --force -n test -t android-$EMULATOR_API --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- ./.wait_for_emulator.sh
- adb shell input keyevent 82 &
script:
- ./gradlew :app:lintGoogleplayDebug
- ./gradlew :app:createGoogleplayDebugAndroidTestCoverageReport
after_success:
- bash <(curl -s https://codecov.io/bash)