Last active
December 17, 2015 07:29
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
killall node | |
brunch watch --server -c config-test.coffee & | |
mocha test/server/all.coffee | |
mocha-phantomjs http://localhost:3333/test/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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