Skip to content

Instantly share code, notes, and snippets.

@jkresner
Last active December 17, 2015 07:29
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 jkresner/5572951 to your computer and use it in GitHub Desktop.
Save jkresner/5572951 to your computer and use it in GitHub Desktop.
Poor man's continuous integration to run javascript tests on every git push http://hackerpreneurialism.com/post/50386628477/poor-mans-continuous-integration-automated-node-tests
#!/bin/sh
killall node
brunch watch --server -c config-test.coffee &
mocha test/server/all.coffee
mocha-phantomjs http://localhost:3333/test/index.html
From your project root
cd .git/hooks
ln -nsf ../../git-hooks/pre-push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment