Skip to content

Instantly share code, notes, and snippets.

@wraithan
Created August 5, 2014 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wraithan/f5207341d1662369cae2 to your computer and use it in GitHub Desktop.
Save wraithan/f5207341d1662369cae2 to your computer and use it in GitHub Desktop.
I like how easy it is to build simple bash scripts. I take this and then use `nodemon --exec "./watch.sh"` and basically have CI locally on my system.
#!/bin/bash
if make unit; then
osx-notifier --type 'pass' --title "nodejs-agent" --message 'unit tests';
else
osx-notifier --type 'fail' --title "nodejs-agent" --message 'unit tests';
fi
if make integration; then
osx-notifier --type 'pass' --title "nodejs-agent" --message 'integration tests';
else
osx-notifier --type 'fail' --title "nodejs-agent" --message 'integration tests';
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment