-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
42 lines (37 loc) · 1.03 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
language: android
jdk:
- openjdk8
android:
components:
- tools
- build-tools-29.0.2
- android-24
- extra
- addon
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_script:
- set -e;
if [ "$TRAVIS_BRANCH" == "staging" ]; then
echo yes | android update sdk --no-ui --all --filter sys-img-armeabi-v7a-android-24;
echo no | android create avd --force --name test --target android-24 --abi armeabi-v7a;
exec emulator -avd test -no-skin -no-audio -no-window &
fi
script:
- jdk_switcher use oraclejdk8
- set -e;
if [ "$TRAVIS_BRANCH" == "staging" ]; then
./gradlew assemble test -PdisablePreDex -PtheTimeHasCometh;
android-wait-for-emulator;
adb devices;
adb shell input keyevent 82 &
./gradlew connectedCheck -PdisablePreDex -PtheTimeHasCometh;
else
./gradlew assemble test -PdisablePreDex;
fi
after_success:
- ./gradlew jacocoTestReport coveralls