From 78b1bfb59de60880d8f7f830a51725c473c0ce0f Mon Sep 17 00:00:00 2001 From: Matthew Messinger Date: Mon, 3 Jun 2019 00:37:47 -0400 Subject: [PATCH] Tweaks to travis --- .travis.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index de3c139d..6dbd96b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,25 @@ language: java jdk: - openjdk8 -deploy: - provider: script - script: ./gradlew build publish - on: - branch: master + +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/ + +jobs: + include: + - stage: check + script: ./gradlew check + - stage: publish + script: ./gradlew build publish + on: + branch: master + +stages: + - check + - name: publish + if: env(ACCESS_KEY)