From fd52b4b8ea9c13401b6e5454815ff8d5014500b0 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 2 Nov 2019 16:59:05 +0100 Subject: [PATCH] [ci] Add stage build and publish Publish is executed after all build jobs are finished. --- .travis.yml | 9 ++++++- .travis/build-doc.sh | 10 ++++---- .travis/build-publish.sh | 52 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+), 6 deletions(-) create mode 100644 .travis/build-publish.sh diff --git a/.travis.yml b/.travis.yml index 6874e5cc62..299a39bc3e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,8 @@ env: matrix: fast_finish: true include: - - name: "linux - mvn deploy" + - stage: build + name: "linux - mvn deploy" os: linux dist: bionic env: BUILD=deploy @@ -37,6 +38,12 @@ matrix: os: windows env: BUILD=deploy language: shell + - stage: publish + name: "Release Build - Publish" + os: linux + dist: bionic + if: "type = push && repo = pmd/pmd && fork = false && tag is present" + env: BUILD=publish before_install: - bash .travis/before_install.sh "11.0.5+10" diff --git a/.travis/build-doc.sh b/.travis/build-doc.sh index 72a544275a..5dd02d6164 100755 --- a/.travis/build-doc.sh +++ b/.travis/build-doc.sh @@ -81,11 +81,11 @@ EOF RELEASE_BODY="${RELEASE_BODY//$'\n'/\\r\\n}" RELEASE_BODY="${RELEASE_BODY//'"'/\\\"}" cat > release-edit-request.json <