From 6e4a5aef0e8daafbfd65b58c43ca73aa42bd3bd5 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 25 Feb 2017 21:29:45 +0100 Subject: [PATCH] Fix condition for when to upload the binaries to sourceforge Travis builds each commit during the release process: this means, the commit on the branch, which changes the version to a non- SNAPSHOT version, is also built. And after that, the tag is built. Therefore, we upload, when we build SNAPSHOTS or when we build from a tag. --- .travis/build-push.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis/build-push.sh b/.travis/build-push.sh index 0971fa542a..c9c85f4f4f 100644 --- a/.travis/build-push.sh +++ b/.travis/build-push.sh @@ -20,7 +20,7 @@ bash .travis/build-site.sh ) # Uploading pmd distribution to sourceforge -if [ "$TRAVIS_TAG" = "" ]; then +if [[ "$TRAVIS_TAG" != "" || "$VERSION" == *-SNAPSHOT ]]; then rsync -avh pmd-dist/target/pmd-*-${VERSION}.zip target/pmd-doc-${VERSION}.zip ${PMD_SF_USER}@web.sourceforge.net:/home/frs/project/pmd/pmd/${VERSION}/ rsync -avh src/site/markdown/overview/changelog.md ${PMD_SF_USER}@web.sourceforge.net:/home/frs/project/pmd/pmd/${VERSION}/ReadMe.md fi