fix(build): Turn test reporting back on now that Jenkins is a LaunchAgent not LaunchDaemon

This commit is contained in:
Ben Gotow 2015-05-14 10:44:09 -07:00
parent 9ea308e831
commit 6d5f2d66d2

View file

@ -155,15 +155,15 @@ module.exports = (grunt) ->
grunt.log.error("Process error: #{err}")
testProc.on 'close', (exitCode, signal) ->
#if testSucceeded
done()
# else
# testOutput = testOutput.replace(/\x1b\[[^m]+m/g, '')
# url = "https://hooks.slack.com/services/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"
# request.post
# url: url
# json:
# username: "Edgehill Builds"
# text: "Aghhh somebody broke the build. ```#{testOutput}```"
# , (err, httpResponse, body) ->
# done(false)
if testSucceeded
done()
else
testOutput = testOutput.replace(/\x1b\[[^m]+m/g, '')
url = "https://hooks.slack.com/services/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"
request.post
url: url
json:
username: "Edgehill Builds"
text: "Aghhh somebody broke the build. ```#{testOutput}```"
, (err, httpResponse, body) ->
done(false)