-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
36 lines (32 loc) · 887 Bytes
/
.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
language: android
jdk: oraclejdk8
sudo: false
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-23
- android-28
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support
before_install:
- chmod +x gradlew
script:
- ./gradlew build check
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
deploy:
skip_cleanup: true
provider: script
script: ./gradlew generateMetadataFileForReleasePublication; ./gradlew generatePomFileForReleasePublication; ./gradlew bintrayUpload -DMP_TARGET=$MP_TARGET -Pbintray_user=$BINTRAY_USER -Pbintray_key=$BINTRAY_KEY
on:
tags: true