-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (49 loc) · 1.53 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
language: android
jdk: oraclejdk8
sudo: required
dist: precise
env:
global:
- ADB_INSTALL_TIMEOUT=10 #Time out to 10 mins
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
android:
update_sdk: true
components:
- platform-tools
- tools
- build-tools-26.0.1
- android-26
# Additional components
- extra-google-m2repository
- extra-android-m2repository
#system images
- sys-img-armeabi-v7a-android-21
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_script:
- chmod +x gradlew #Grant permissions
# Start creating the AVD
- android list targets
- android list device
# Create emulator with 1G RAM
# - chmod +x ./misc/set_emulator_prop.sh
# - bash ./misc/set_emulator_prop.sh
#
# # Start emulator
# - emulator -avd test -no-skin -no-audio -no-window &
# - android-wait-for-emulator
#
# - adb devices #Display list of
# - adb shell settings put global window_animation_scale 0.0
# - adb shell settings put global transition_animation_scale 0.0
# - adb shell settings put global animator_duration_scale 0.0
# - adb shell input keyevent 82 &
script:
- ./gradlew :app:assembleDebug --continue --stacktrace
after_success:
- bash <(curl -s https://codecov.io/bash)
after_failure:
- cat $TRAVIS_BUILD_DIR/app/build/outputs/lint-results-debug.xml