Skip to content

Commit

Permalink
Skip trying to run tests if build fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
int3 committed Nov 3, 2012
1 parent c0b317a commit 0de3404
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ visitDirectory = (directory, visitor) ->

task "build", "compile all coffeescript files to javascript", ->
coffee = spawn "coffee", ["-c", __dirname]
coffee.on 'exit', (returnCode) -> process.exit returnCode

task "clean", "removes any js files which were compiled from coffeescript", ->
visitDirectory __dirname, (filepath) ->
Expand Down
3 changes: 1 addition & 2 deletions git_hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ git checkout-index --prefix=$TDIR/ -af
cp -r ./tests/shoulda.js/ $TDIR/tests/shoulda.js/

pushd $TDIR > /dev/null
cake build
cake test
cake build && cake test
TEST_RESULT=$?
popd > /dev/null

Expand Down

0 comments on commit 0de3404

Please sign in to comment.