Make internal Travis CI notifications behave better. (#9897)
* Add failure messages for package build checks. * Make notifications only happen for master branch.
Austin S. Hemmelgarn committed
Sep 8, 2020 at 08:55 UTC
173f508314575a487b4711b2a917d834886cb912
1 file changed
+8
-2
.travis.yml
+8
-2
@@ -39,8 +39,12 @@ install:
39
# Setup notification system
40
#
41
notifications:
42
- webhooks: https://app.fossa.io/hooks/travisci
43
-
42
+ webhooks:
43
+ urls:
44
+ - https://app.fossa.io/hooks/travisci
45
+ if: branch = master
46
+ slack:
47
+ if: branch = master
48
49
# Define the stage sequence and conditionals
50
#
@@ -182,6 +186,7 @@ jobs:
186
env:
187
- BUILDER_NAME="builder" BUILD_DISTRO="debian" BUILD_RELEASE="buster" BUILD_STRING="debian/buster"
188
- PACKAGE_TYPE="deb" REPO_TOOL="apt-get"
189
+ after_failure: post_message "TRAVIS_MESSAGE" "Netdata DEB package build check failed."
190
191
- name: RPM package test
192
if: commit_message =~ /^((?!\[Package (amd64|arm64|i386) (DEB|RPM)( .*)?\]).)*$/
@@ -203,6 +208,7 @@ jobs:
208
env:
209
- BUILDER_NAME="builder" BUILD_DISTRO="fedora" BUILD_RELEASE="31" BUILD_STRING="fedora/31"
210
- PACKAGE_TYPE="rpm" REPO_TOOL="dnf"
211
+ after_failure: post_message "TRAVIS_MESSAGE" "Netdata RPM package build check failed."
212
213
- stage: Support activities on main branch
214
name: Generate changelog for release (only on special and tagged commit msg)