-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (50 loc) · 1.61 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
sudo: required
language: android
jdk: oraclejdk8
android:
components:
# Auxiliary tools which have to be installed
- tools
- tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943
- platform-tools
# The BuildTools version used
- build-tools-25.0.3
# The SDK version used to compile the project
- android-25
- android-19
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-19
#System images
- sys-img-armeabi-v7a-android-16
before_install:
# copy the licenses to the correct file on the Travis system
- pip install --user codecov #Install codecov
- cp -r licenses/ /usr/local/android-sdk/licenses/
- cd Hestia
install:
- bash gradlew tasks --all --stacktrace --info
before_script:
- android update sdk --no-ui --filter build-tools-25.0.3,android-19,extra-android-m2repository
# Start emulator
- echo no | android create avd --force -n test -t android-19 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- bash gradlew app:createDebugCoverageReport
after_failure:
# Prints any linting errors after failing
- cat $TRAVIS_BUILD_DIR/app/build/outputs/lint-results-debug.xml
after_success:
- codecov
- sh set_tags.sh
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/