summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorPaul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com>2019-09-03 17:56:15 +0300
committerChris Akritidis <43294513+cakrit@users.noreply.github.com>2019-09-03 16:56:15 +0200
commit4d975c271258eaaef6b4aceabb2ff5f3212be879 (patch)
tree3c236d9e61562a401245305388faf0dc72492930 /.travis.yml
parent2c1312b192d1379729c547cbafcd4a1093150b2c (diff)
netdata/packaging: Trigger stable package generation upon release process (#6766)
enable auto-generation of packages for RPM and DEB, during stable release
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 17dd7db7e9..b2e12083ca 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -525,6 +525,15 @@ jobs:
- .travis/draft_release.sh
after_failure: post_message "TRAVIS_MESSAGE" "<!here> Draft release submission failed"
+ - name: Trigger .RPM and .DEB package generation
+ before_script: post_message "TRAVIS_MESSAGE" "Starting RPM and DEB package generation for release" "${NOTIF_CHANNEL}"
+ script:
+ - if [[ -z "${GIT_TAG}" ]] || [[ ! "${GIT_TAG}" = "$(git tag --points-at)" ]]; then post_message "TRAVIS_MESSAGE" "<!here> I Did not find a valid GIT_TAG to proceed with stable packaging" "${NOTIF_CHANNEL}" && exit 1; fi;
+ - if [[ -n "${GIT_TAG}" ]] && [[ "${GIT_TAG}" = "$(git tag --points-at)" ]]; then .travis/trigger_package_generation.sh; fi;
+ after_failure: post_message "TRAVIS_MESSAGE" "<!here> Stable release package generation produced errors" "${NOTIF_CHANNEL}"
+ git:
+ depth: false
+
# This is the nightly pre-execution step (Jobs, preparatory steps for nightly, etc)