-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gulp-notify breaks Travis CI #11
Comments
I think this is more of a bug in node-notifier. There should be a test there, seeing if |
Wow, that was a quick response! Thanks :) |
This is now fixed in mikaelbr/node-notifier#3, but I have some issues updating the package on NPM at this moment. But I will update the dependency as soon as I can. |
The dependency is now updated and there is a new version of You might also consider not using |
I updated to
The reason I use |
I think the best way is to use Example: gulp.task('task', function() {
gulp.src('./src/*.js')
.pipe(gutil.env.type !== 'ci' ? notify() : gutil.noop())
.pipe(gulp.dest('./dist/'));
}); And then you can run gulp with env type of Edit: Inverted env type check. Should use nofity() when not on CI. |
That's an acceptable workaround for now :) |
You can also make it fail silently by handling the error event that gulp-notify triggers. ..
.pipe(notify())
.on('error', gutil.log); But due to pipe() this will stop pipeing (but it works if notify is the final step). To continue even on error, you can see the gulp-plumber project. |
👍 for the env check |
Here is an excerpt from the log of a failing Travis CI build:
Is this a
gulp-notify
-bug or is there some workaround to prevent it from running/failing on Travis or similar Linux-systems withoutnotify-send
installed?The text was updated successfully, but these errors were encountered: