Browse Source

The final version.

Kamil Piechaczek 7 years ago
parent
commit
94f2ab0bcf
1 changed files with 7 additions and 3 deletions
  1. 7 3
      scripts/notify-travis-status.js

+ 7 - 3
scripts/notify-travis-status.js

@@ -22,9 +22,13 @@ It also has some dependencies:
 
 const buildBranch = process.env.TRAVIS_BRANCH;
 
-// Send a notification only for main branches.
-// TODO: Remove Slack
-if ( buildBranch !== 'master' && buildBranch !== 'master-revisions' && buildBranch !== 'slack' ) {
+// Send a notification only for main branches...
+if ( buildBranch !== 'master' && buildBranch !== 'master-revisions' ) {
+	process.exit();
+}
+
+// ...and "push" builds.
+if ( process.env.TRAVIS_EVENT_TYPE !== 'push' ) {
 	process.exit();
 }