mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Pass on exit code from spawned task so CI fails
This commit is contained in:
parent
815f976355
commit
61a2702ded
1 changed files with 4 additions and 2 deletions
|
@ -38,9 +38,10 @@ task 'test', 'snowflake unit tests', ->
|
||||||
exec 'echo "TESTING = true" > ' + outFile
|
exec 'echo "TESTING = true" > ' + outFile
|
||||||
exec 'cat ' + jasmineFiles.join(' ') + ' | cat >> ' + outFile
|
exec 'cat ' + jasmineFiles.join(' ') + ' | cat >> ' + outFile
|
||||||
execSync 'coffee -cb ' + outFile
|
execSync 'coffee -cb ' + outFile
|
||||||
spawn 'jasmine', ['test/bundle.spec.js'], {
|
proc = spawn 'jasmine', ['test/bundle.spec.js'], {
|
||||||
stdio: 'inherit'
|
stdio: 'inherit'
|
||||||
}
|
}
|
||||||
|
proc.on "exit", (code) -> process.exit code
|
||||||
|
|
||||||
task 'build', 'build the snowflake proxy', ->
|
task 'build', 'build the snowflake proxy', ->
|
||||||
exec 'mkdir -p build'
|
exec 'mkdir -p build'
|
||||||
|
@ -49,10 +50,11 @@ task 'build', 'build the snowflake proxy', ->
|
||||||
console.log 'Snowflake prepared.'
|
console.log 'Snowflake prepared.'
|
||||||
|
|
||||||
task 'lint', 'ensure idiomatic coffeescript', ->
|
task 'lint', 'ensure idiomatic coffeescript', ->
|
||||||
spawn 'coffeelint', FILES_ALL, {
|
proc = spawn 'coffeelint', FILES_ALL, {
|
||||||
file: 'coffeelint.json'
|
file: 'coffeelint.json'
|
||||||
stdio: 'inherit'
|
stdio: 'inherit'
|
||||||
}
|
}
|
||||||
|
proc.on "exit", (code) -> process.exit code
|
||||||
|
|
||||||
task 'clean', 'remove all built files', ->
|
task 'clean', 'remove all built files', ->
|
||||||
exec 'rm -r build'
|
exec 'rm -r build'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue