-
Notifications
You must be signed in to change notification settings - Fork 72
/
.travis.yml
64 lines (53 loc) · 1.64 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
63
64
language: android
jdk:
# Jdk version used by your project
- oraclejdk8
sudo: false
android:
components:
- platform-tools
- tools
# The BuildTools version used by your project
- build-tools-24.0.2
- android-24
- extra-android-m2repository
- extra-google-m2repository
- extra-android-support
- extra-google-google_play_services
# Specify at least one system image, if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-24
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
notifications:
email: false
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
# cache between builds
cache:
directories:
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
install:
# Check install section: http://docs.travis-ci.com/user/build-configuration/#install
# If you'd like to skip the install stage entirely, set it to true and nothing will be run.
- true
before_script:
- chmod +x gradlew
- echo no | android create avd --force --name test --target android-24 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window -no-boot-anim &
- android-wait-for-emulator
- adb shell input keyevent 82 &
# Build, and run tests
script:
# Once tests written should run the gradle task for both Mobile and Wear
# currently only doing a normal build to test Travis config
#- ./gradlew mobile:functionalTests
#- ./gradlew wear:functionalTests
# - ./gradlew core:test --info
- ./gradlew core:jacocoTestReport
# Codecov
after_success:
- bash <(curl -s https://codecov.io/bash)