Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add build:test task.

  • Loading branch information...
commit bb158fc5b0983972f87542346ee08cfc18a142cc 1 parent 23a1cea
@elving authored
Showing with 18 additions and 3 deletions.
  1. +18 −3 Cakefile
View
21 Cakefile
@@ -1,5 +1,20 @@
+util = require 'util'
+exec = (require 'child_process').exec
+server = (require 'karma').server
+
task 'test', ->
- server = (require 'karma').server
server.start configFile: './test/karma.conf.js', (exitCode) ->
- console.log "Karma has exited with #{exitCode}"
- process.exit exitCode
+ console.log "Karma has exited with #{exitCode}"
+ process.exit exitCode
+
+task 'build:test', ->
+ exec 'brunch b', (error, stdout, stderr) ->
+ if stdout
+ console.log stdout
+ server.start configFile: './test/karma.conf.js', (exitCode) ->
+ console.log "Karma has exited with #{exitCode}"
+ process.exit exitCode
+ else if stderr
+ console.log stderr
+ else if error
+ console.log error
Please sign in to comment.
Something went wrong with that request. Please try again.