Skip to content

Commit

Permalink
Cakefile pass env
Browse files Browse the repository at this point in the history
  • Loading branch information
bancek committed Oct 8, 2014
1 parent 8ef585b commit 2788f40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ path = require 'path'
file = require 'file'

task 'build', 'Build lib from src', ->
spawn('coffee', ['--compile', '--output', 'lib/', 'src/'], stdio: 'inherit')
spawn 'coffee', ['--compile', '--output', 'lib/', 'src/'], stdio: 'inherit', env: process.env

task 'coverage', 'Build cov-lib from src', (callback) ->
spawn('coffeeCoverage', ['src', 'src'], stdio: 'inherit').on 'close', ->
spawn('coffeeCoverage', ['src', 'src'], stdio: 'inherit', env: process.env).on 'close', ->
out = fs.openSync('coverage.html', 'w')

spawn('mocha', [
Expand All @@ -26,4 +26,4 @@ task 'coverage', 'Build cov-lib from src', (callback) ->
callback?()

task 'test', 'Run Mocha tests', (callback) ->
spawn 'mocha', ['--compilers', 'coffee:coffee-script', '--recursive', 'test'], stdio: 'inherit'
spawn 'mocha', ['--compilers', 'coffee:coffee-script', '--recursive', 'test'], stdio: 'inherit', env: process.env

0 comments on commit 2788f40

Please sign in to comment.