chore(build): fail experimental Dart build but allow Travis failures

This commit is contained in:
yjbanov 2015-08-19 15:29:36 -07:00
parent a94f051d43
commit 8536df16d9
2 changed files with 4 additions and 12 deletions

View File

@ -42,6 +42,7 @@ env:
matrix:
allow_failures:
- env: "MODE=saucelabs DART_CHANNEL=dev"
- env: "MODE=dart_experimental DART_CHANNEL=dev"
addons:
firefox: "38.0"

View File

@ -107,19 +107,10 @@ module.exports = function(gulp, plugins, config) {
if (report.length > 0) {
error = 'Dartanalyzer showed ' + report.join(', ');
}
if (useDdc) {
// TODO(yjbanov): fail the build when:
// - DDC analyzer is stable enough
// - We have cleaned up all DDC warnings
console.log(error);
done();
} else {
done(error);
}
done(error);
});
stream.on('error', function(e) {
// TODO(yjbanov): fail the build when DDC is stable enough
console.log('ERROR: failed to run DDC at all: ' + e);
stream.on('error', function(error) {
done(error);
});
}
};