[TASK] Improve travis notifications to channels 18/31218/3
authorHelmut Hummel <helmut.hummel@typo3.org>
Sun, 29 Jun 2014 12:00:15 +0000 (14:00 +0200)
committerMichael Stucki <michael.stucki@typo3.org>
Sun, 29 Jun 2014 12:37:20 +0000 (14:37 +0200)
By default travis notifies on each build when
posting to channels (irc, slack)

We can reduce the number of notifications by only
posting successful builds when it previously failed.

Additionally encrypt the API token for posting to slack.

Releases: 6.3, 6.2, 6.1, 6.0, 4.7, 4.5
Change-Id: I882d34903c972201454e6cc5b9041393e3bd3661
Reviewed-on: https://review.typo3.org/31218
Reviewed-by: Michael Stucki
Tested-by: Michael Stucki
.travis.yml

index 364c730..eda1e75 100644 (file)
@@ -15,10 +15,16 @@ services:
 
 notifications:
   irc:
-    - "irc.freenode.net#typo3-cms"
+    channels:
+      - "irc.freenode.net#typo3-cms"
+    on_success: change
+    on_failure: always
+    use_notice: true
   slack:
     rooms:
-      - typo3:DHkQdCNWc6x2znPAYA5T2LXO#typo3-cms
+      secure: a7c9Nw3KblUQsO4np7Sa685y7tqSJ5nSvzO8hnFjKEeQlgkbnC7Qq2TBvVSr92A1UMouL+6E9ngp3cb7rSYWsNKIaHn51CjhrvlfFElTZ0qd/jLVNDf1B765i0txiIZLLed0e3871/151xBgnggsXC4hcv4mPGc9g//ZPabp++E=
+    on_success: change
+    on_failure: always
 
 before_script:
   - >