forked from felHR85/UsbSerial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 854 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
language: android
android:
components:
- tools
- platform-tools
# Note that the tools section appears twice on purpose as it’s required to get the newest Android SDK tools.
# See: https://docs.travis-ci.com/user/languages/android/#Overview
- tools
- build-tools-27.0.3
- build-tools-27.0.2
- build-tools-26.0.2
- android-27
- android-26
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
before_install:
- yes | sdkmanager "platforms;android-27"
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_script:
- export VERSION_TO_BUILD="$TRAVIS_TAG"
script: ./gradlew clean build
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: usbserial/build/outputs/aar/usbserial-${VERSION_TO_BUILD}-release.aar
skip_cleanup: true
on:
tags: true