2019-08-03 19:33:43 +00:00
|
|
|
language: java
|
2016-09-05 19:45:23 +00:00
|
|
|
|
2019-08-03 19:33:43 +00:00
|
|
|
os: linux
|
|
|
|
jdk: oraclejdk8
|
|
|
|
|
|
|
|
# Don't call `./gradlew assemble`
|
|
|
|
install: []
|
|
|
|
|
|
|
|
script:
|
|
|
|
- ./gradlew build --scan --stacktrace
|
2016-09-05 19:45:23 +00:00
|
|
|
|
2018-04-18 18:16:20 +00:00
|
|
|
deploy:
|
|
|
|
# Deploy to GitHub releases
|
|
|
|
provider: releases
|
|
|
|
api_key: $GITHUB_OAUTH_TOKEN
|
|
|
|
file_glob: true
|
2019-08-03 19:33:43 +00:00
|
|
|
file: "./build/distributions/rhubarb-lip-sync-*.zip"
|
2018-04-18 18:16:20 +00:00
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
tag_name: $TRAVIS_TAG
|
|
|
|
name: $TRAVIS_COMMIT_MESSAGE
|
|
|
|
draft: true
|
2019-08-03 19:46:02 +00:00
|
|
|
|
|
|
|
# Enable caching of dependencies.
|
|
|
|
# See https://guides.gradle.org/executing-gradle-builds-on-travisci/#enable_caching_of_downloaded_artifacts
|
|
|
|
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/
|