-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (41 loc) · 1.38 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
#http://docs.travis-ci.com/user/languages/android/
language: android
jdk: oraclejdk8
# I want faster builds of course, http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
sudo: false
# disable notifications via e-mail http://docs.travis-ci.com/user/notifications/
notifications:
email: false
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- platform-tools
- tools
# The BuildTools version used by your project
- build-tools-26.0.2
- android-25
licenses:
- android-sdk-license-.+
- '.+'
before_install:
# for gradle output style
- export TERM=dumb
# environment info
# - sudo chmod +x gradlew
- ./gradlew -v
- uname -a
- echo "Android Home:$ANDROID_HOME"
# manually set sdk.dir variable, according to local paths
- echo "sdk.dir=$ANDROID_HOME" > local.properties
- echo "Local Properties file is "
- cat local.properties
# manually accept licenses https://github.com/travis-ci/travis-ci/issues/6555
# https://stackoverflow.com/questions/42731625/travis-ci-failed-because-cannot-accept-license-constrain-layout/42736695#42736695
- echo yes | sdkmanager tools
# Check components status
- sdkmanager --list || true
script:
- ./gradlew clean install
#after_success:
# - bash <(curl -s https://codecov.io/bash)