From 23545aa7ea599faf17737de9879733a1bde700d1 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 20 May 2017 23:53:28 +0200 Subject: [PATCH] travis build - run only specific parts of release.sh script --- .travis/release.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis/release.sh b/.travis/release.sh index 2508d891ac..028ff6f20a 100644 --- a/.travis/release.sh +++ b/.travis/release.sh @@ -2,11 +2,8 @@ set -e echo "BUILD: $BUILD" -if [ "${BUILD}" != "deploy" ]; then - echo "Skipping deployment script, it needs to run only once" - exit 0 -fi +if [ "${BUILD}" = "deploy" ]; then RELEASE_VERSION=$(./mvnw -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.5.0:exec | tail -1) @@ -46,8 +43,11 @@ else echo "Update OK" fi +fi +if [ "${BUILD}" = "site" ]; then + echo "Adding the site to pmd.github.io..." # clone pmd.github.io. Note: This uses the ssh key setup earlier # In order to speed things up, we use a sparse checkout - no need to checkout all directories here @@ -71,3 +71,5 @@ mkdir pmd.github.io git push origin master ) +fi +