From f7d5b848abdced707a76b1fc63a1519e7a77493e Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Thu, 23 Jul 2020 18:09:20 -0700 Subject: [PATCH] Minor cleanup of .travis.yml --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 362eea3187..7c6e227ea4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,18 +4,17 @@ language: java # build won't work with anything below Java 8 now jdk: - openjdk8 - - oraclejdk11 + - openjdk11 # Below this line is configuration for deploying to the Sonatype OSS repo # https://knowm.org/configure-travis-ci-to-deploy-snapshots/ before_install: "git clone -b travis `git config --get remote.origin.url` target/travis" -after_success: "mvn deploy --settings target/travis/settings.xml" +script: "[ ${TRAVIS_PULL_REQUEST} = 'false' ] && mvn clean deploy --settings target/travis/settings.xml || mvn clean verify --settings target/travis/settings.xml" # whitelist branches: only: - - master - "2.10" env: