Tweaks to travis

This commit is contained in:
Matthew Messinger 2019-06-03 00:37:47 -04:00
parent dc38240b10
commit 78b1bfb59d

View file

@ -1,8 +1,25 @@
language: java language: java
jdk: jdk:
- openjdk8 - openjdk8
deploy:
provider: script before_cache:
script: ./gradlew build publish - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
on: - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
branch: master cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
jobs:
include:
- stage: check
script: ./gradlew check
- stage: publish
script: ./gradlew build publish
on:
branch: master
stages:
- check
- name: publish
if: env(ACCESS_KEY)