chore(build): fail experimental Dart build but allow Travis failures
This commit is contained in:
parent
a94f051d43
commit
8536df16d9
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
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);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue