From ba3fd27f4288a91e9c26fb85f90317689870cb71 Mon Sep 17 00:00:00 2001 From: Milad Naseri Date: Thu, 14 Apr 2016 16:32:12 -0700 Subject: [PATCH] feat(travis): make deploy only happen for Java8 build This will help us avoid multiple deployments --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c587815a..0deb630a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,8 @@ jdk: - oraclejdk7 after_success: - mvn -P coverage clean cobertura:cobertura coveralls:report - - '[[ $TRAVIS_BRANCH == "master" && ( "x${TRAVIS_PULL_REQUEST}" == "xfalse" || "x${TRAVIS_PULL_REQUEST}" == "x" ) ]] && sudo apt-get install gnupg2' - - '[[ $TRAVIS_BRANCH == "master" && ( "x${TRAVIS_PULL_REQUEST}" == "xfalse" || "x${TRAVIS_PULL_REQUEST}" == "x" ) ]] && bash depoy.sh eb1a6f34f056 key.asc.enc settings.xml' + - '[[ $TRAVIS_BRANCH == "master" && ( "x${TRAVIS_PULL_REQUEST}" == "xfalse" || "x${TRAVIS_PULL_REQUEST}" == "x" ) && ( "x$(echo $JAVA_HOME | grep -o 8)" == "x8" ) ]] && sudo apt-get install gnupg2' + - '[[ $TRAVIS_BRANCH == "master" && ( "x${TRAVIS_PULL_REQUEST}" == "xfalse" || "x${TRAVIS_PULL_REQUEST}" == "x" ) && ( "x$(echo $JAVA_HOME | grep -o 8)" == "x8" ) ]] && bash deploy.sh eb1a6f34f056 key.asc.enc settings.xml' sudo: true env: global: