Fail CI build when deprecations exist

This commit is contained in:
Kevin Sawicki
2015-03-25 10:47:06 -07:00
parent c12f94907d
commit c2fecacdbe

View File

@@ -27,8 +27,15 @@ module.exports.runSpecSuite = (specSuite, logFile, logErrors=true) ->
fs.closeSync(logStream) if logStream?
if process.env.JANKY_SHA1
grim = require 'grim'
grim.logDeprecations() if grim.getDeprecationsLength() > 0
atom.exit(runner.results().failedCount > 0 ? 1 : 0)
if grim.getDeprecationsLength() > 0
grim.logDeprecations()
return atom.exit(1) if runner.results().failedCount is 0
if runner.results().failedCount > 0
atom.exit(1)
else
atom.exit(0)
else
AtomReporter = require './atom-reporter'
reporter = new AtomReporter()