commit 61a2702ded0dfb460a91d248c2b5eb5d691edf4f Author: Arlo Breault arlolra@gmail.com Date: Wed Jan 18 17:20:13 2017 -0800
Pass on exit code from spawned task so CI fails --- proxy/Cakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/proxy/Cakefile b/proxy/Cakefile index 6e5a413..8032034 100644 --- a/proxy/Cakefile +++ b/proxy/Cakefile @@ -38,9 +38,10 @@ task 'test', 'snowflake unit tests', -> exec 'echo "TESTING = true" > ' + outFile exec 'cat ' + jasmineFiles.join(' ') + ' | cat >> ' + outFile execSync 'coffee -cb ' + outFile - spawn 'jasmine', ['test/bundle.spec.js'], { + proc = spawn 'jasmine', ['test/bundle.spec.js'], { stdio: 'inherit' } + proc.on "exit", (code) -> process.exit code
task 'build', 'build the snowflake proxy', -> exec 'mkdir -p build' @@ -49,10 +50,11 @@ task 'build', 'build the snowflake proxy', -> console.log 'Snowflake prepared.'
task 'lint', 'ensure idiomatic coffeescript', -> - spawn 'coffeelint', FILES_ALL, { + proc = spawn 'coffeelint', FILES_ALL, { file: 'coffeelint.json' stdio: 'inherit' } + proc.on "exit", (code) -> process.exit code
task 'clean', 'remove all built files', -> exec 'rm -r build'
tor-commits@lists.torproject.org