-
Notifications
You must be signed in to change notification settings - Fork 278
/
.travis.yml
34 lines (31 loc) · 1.1 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
# http://docs.travis-ci.com/user/languages/android/
language: android
sudo: false
jdk: oraclejdk8
android:
components:
- tools
- platform-tools
- build-tools-29.0.2
- android-29
- extra-android-support
- extra-android-m2repository
# License agreement workaround
# From similar issue: https://travis-ci.community/t/accept-license-for-android-build-tools-27-0-3-bug/549
before_install:
- yes | sdkmanager "build-tools;29.0.2"
# https://docs.travis-ci.com/user/languages/android/#Caching
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/
- $HOME/.android/build-cache
script:
- cp app/key.properties.example app/key.properties
- cp app/key.properties.example app/debugkey.properties
- keytool -genkey -v -keystore app/debug.keystore -alias AndroidDebugKey -keyalg RSA -keysize 2048 -validity 1 -storepass android -keypass android -dname "cn=TEST, ou=TEST, o=TEST, c=TE"
- ./gradlew assemble
- ./gradlew test