Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
made Cakefile work better with failing tests
  • Loading branch information
sgentle committed Nov 20, 2011
1 parent beced75 commit 93c7bcb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Cakefile
Expand Up @@ -4,11 +4,14 @@ bin = "./node_modules/.bin"

run = (cmds...) ->
exec cmds.join(' && '), (err, stdout, stderr) ->
stderr = stderr.trim()
stdout = stdout.trim()
console.log stderr if stderr
console.log stdout if stdout
if err
console.log stderr.trim()
console.log "Failed."
else
console.log stdout.trim()
console.log "done"
console.log "Great success!"

task "build", "coffee-compile and browserify phantom", ->
run(
Expand Down

0 comments on commit 93c7bcb

Please sign in to comment.