-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (59 loc) · 1.62 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
language: android
jdk: oraclejdk8
sudo: false
branches:
only:
- master
notifications:
email:
on_success: always
env:
matrix:
- ANDROID_TARGET=android-21 ANDROID_ABI=armeabi-v7a
global:
- ADB_INSTALL_TIMEOUT=20
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- "$HOME/.gradle/daemon"
- "$HOME/.gradle/native"
- "$HOME/.gradle/wrapper"
android:
update_sdk: true
components:
- platform-tools
- tools
- build-tools-27.0.3
- android-21
- android-27
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- sys-img-armeabi-v7a-android-19
- sys-img-armeabi-v7a-android-21
licenses:
- android-sdk-preview-license-52d11cd2
- android-sdk-license-.+
- google-gdk-license-.+
before_script:
- chmod +x gradlew
- android list targets
- echo no | android create avd --force --name test --target android-21 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
script:
- echo "Travis branch is $TRAVIS_BRANCH"
- echo "Travis branch is in pull request $TRAVIS_PULL+REQUEST"
- android-wait-for-emulator
- adb devices
- adb shell input keyevent 82 &
- echo "y" | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2"
- echo "y" | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-alpha7"
- travis_wait 30 ./gradlew connectedCheck assembleDebug -PdisablePreDex
before_install:
- pip install --user codecov
after_success:
- codecov
after_failure: cat $TRAVIS_BUILD_DIR/app/build/outputs/lint-results-debug.xml