forked from fondesa/kpermissions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (39 loc) · 1.01 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
language: android
jdk: oraclejdk8
# Use the Travis container-based infrastructure.
sudo: false
env:
global:
# The same build tools version in the project.
- BUILD_TOOLS_VERSION=29.0.2
# Android API level used in this project.
- API=29
before_install:
- yes | sdkmanager "platforms;android-${API}"
- yes | sdkmanager "build-tools;${BUILD_TOOLS_VERSION}"
android:
components:
- tools
- platform-tools
# Support libraries.
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository
notifications:
email: false
branches:
only:
- master
script:
# Build the library project.
- ./gradlew :kpermissions:build --continue -s
# Assemble the sample with the local libs.
- ./gradlew :sample:assembleLocal --continue -s
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