From e819dd39ca28f10c6df206978bf135e94cb1e124 Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Wed, 15 Jun 2016 17:09:14 -0600 Subject: [PATCH] Only install and skip javadoc generation --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 042c01f5..fe1e1d04 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,10 +14,10 @@ before_install: - echo "https://$GH_TOKEN:@github.com" > .git/credentials - gem install asciidoctor install: -- ./mvnw install -P docs -q -U -DskipTests=true -Dmaven.test.redirectTestOutputToFile=true +- ./mvnw install -P docs -q -U -DskipTests=true -Dmaven.test.redirectTestOutputToFile=true -Dmaven.javadoc.skip=true - '[ "${MVN_GOAL}" == "deploy" ] && ./docs/src/main/asciidoc/ghpages.sh || echo "Not updating docs"' script: -- './mvnw -s .settings.xml $MVN_GOAL $MVN_PROFILE -nsu -Dmaven.test.redirectTestOutputToFile=true' +- './mvnw -s .settings.xml $MVN_GOAL $MVN_PROFILE -nsu -Dmaven.javadoc.skip=true -Dmaven.test.redirectTestOutputToFile=true' env: global: - GIT_NAME="Dave Syer" @@ -25,7 +25,7 @@ env: - CI_DEPLOY_USERNAME=buildmaster - FEATURE_BRANCH=$(echo ${TRAVIS_BRANCH} | grep -q "^.*/.*$" && echo true || echo false) - SPRING_CLOUD_BUILD=$(echo ${TRAVIS_REPO_SLUG} | grep -q "^spring-cloud/.*$" && echo true || echo false) - - MVN_GOAL=$([ "${TRAVIS_PULL_REQUEST}" == "false" -a "${TRAVIS_TAG}" == "" -a "${FEATURE_BRANCH}" == "false" -a "${SPRING_CLOUD_BUILD}" == "true" ] && echo deploy || echo install) + - MVN_GOAL=install - VERSION=$(mvn validate | grep Building | head -1 | sed -e 's/.* //') - MILESTONE=$(echo ${VERSION} | egrep 'M|RC' && echo true || echo false) - MVN_PROFILE=$([ "${MILESTONE}" == "true" ] && echo -P milestone)