This repository has been archived by the owner on Feb 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
62 lines (50 loc) · 1.5 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
language: android
jdk: oraclejdk8
sudo: required
dist: trusty
branches:
except:
- gh-pages
addons:
sonarcloud:
organization: "mgaetan89-github"
env:
global:
- BUILD_TOOLS_VERSION=27.0.3
- SDK_VERSION=27
matrix:
- EMULATOR_TAG=android EMULATOR_API=19 ABI=armeabi-v7a
- EMULATOR_TAG=android EMULATOR_API=21 ABI=armeabi-v7a
android:
components:
- tools
- platform-tools
- tools
- build-tools-$BUILD_TOOLS_VERSION
- android-$SDK_VERSION
licenses:
- 'android-sdk-license-.+'
before_script:
- echo y | android update sdk --no-ui --all --filter "android-$EMULATOR_API"
- android-update-sdk --components="sys-img-$ABI-$EMULATOR_TAG-$EMULATOR_API" --accept-licenses='android-sdk-license-[0-9a-f]{8}'
- echo no | android create avd --force -n test -t $EMULATOR_TAG-$EMULATOR_API --abi $ABI
- emulator -avd test -no-audio -netfast -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
- adb shell svc power stayon true
script:
- travis_wait 60 ./gradlew :app:assembleDebugAndroidTest :app:connectedDebugAndroidTest :app:jacocoTestReportDebug :app:createDebugCoverageReport
- ./gradlew sonarqube
after_success:
- bash <(curl -s https://codecov.io/bash)
after_failure:
- adb logcat -d
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $ANDROID_HOME
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache