@ckeditor/ckeditor5-dev-ci 32.0.1 → 32.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -38,21 +38,21 @@ const ALLOWED_EVENTS = [
|
|
|
38
38
|
|
|
39
39
|
// Send a notification only for main branches...
|
|
40
40
|
if ( !ALLOWED_BRANCHES.includes( buildBranch ) ) {
|
|
41
|
-
|
|
41
|
+
printLog( `Aborting due to an invalid branch (${ buildBranch }).` );
|
|
42
42
|
|
|
43
43
|
process.exit();
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
// ...and an event that triggered the build is correct...
|
|
47
47
|
if ( !ALLOWED_EVENTS.includes( process.env.TRAVIS_EVENT_TYPE ) ) {
|
|
48
|
-
|
|
48
|
+
printLog( `Aborting due to an invalid event type (${ process.env.TRAVIS_EVENT_TYPE }).` );
|
|
49
49
|
|
|
50
50
|
process.exit();
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
// ...and for builds that failed.
|
|
54
54
|
if ( process.env.TRAVIS_TEST_RESULT == 0 ) {
|
|
55
|
-
|
|
55
|
+
printLog( 'The build did not fail. The notification will not be sent.' );
|
|
56
56
|
|
|
57
57
|
process.exit();
|
|
58
58
|
}
|
|
@@ -83,8 +83,6 @@ notifyTravisStatus( options )
|
|
|
83
83
|
/**
|
|
84
84
|
* @param {String} message
|
|
85
85
|
*/
|
|
86
|
-
function
|
|
87
|
-
|
|
88
|
-
console.log( '[Slack Notification]', message );
|
|
89
|
-
}
|
|
86
|
+
function printLog( message ) {
|
|
87
|
+
console.log( '[Slack Notification]', message );
|
|
90
88
|
}
|