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:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- env: "MODE=saucelabs DART_CHANNEL=dev"
|
- env: "MODE=saucelabs DART_CHANNEL=dev"
|
||||||
|
- env: "MODE=dart_experimental DART_CHANNEL=dev"
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
firefox: "38.0"
|
firefox: "38.0"
|
||||||
|
|
|
@ -107,19 +107,10 @@ module.exports = function(gulp, plugins, config) {
|
||||||
if (report.length > 0) {
|
if (report.length > 0) {
|
||||||
error = 'Dartanalyzer showed ' + report.join(', ');
|
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) {
|
stream.on('error', function(error) {
|
||||||
// TODO(yjbanov): fail the build when DDC is stable enough
|
done(error);
|
||||||
console.log('ERROR: failed to run DDC at all: ' + e);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue