mirror of https://github.com/webpack/webpack.git
ci: stability
This commit is contained in:
parent
1c855e8ae1
commit
e8f987423d
|
@ -199,8 +199,10 @@ const describeCases = config => {
|
||||||
fs.mkdirSync(outputDirectory, { recursive: true });
|
fs.mkdirSync(outputDirectory, { recursive: true });
|
||||||
infraStructureLog.length = 0;
|
infraStructureLog.length = 0;
|
||||||
const deprecationTracker = deprecationTracking.start();
|
const deprecationTracker = deprecationTracking.start();
|
||||||
require("..")(options, err => {
|
const compiler = require("..")(options);
|
||||||
|
compiler.run(err => {
|
||||||
deprecationTracker();
|
deprecationTracker();
|
||||||
|
if (err) return handleFatalError(err, done);
|
||||||
const infrastructureLogging = stderr.toString();
|
const infrastructureLogging = stderr.toString();
|
||||||
if (infrastructureLogging) {
|
if (infrastructureLogging) {
|
||||||
return done(
|
return done(
|
||||||
|
@ -230,16 +232,19 @@ const describeCases = config => {
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (err) return handleFatalError(err, done);
|
compiler.close(closeErr => {
|
||||||
|
if (err) return handleFatalError(closeErr, done);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}, 60000);
|
}, 60000);
|
||||||
it(`${testName} should pre-compile to fill disk cache (2nd)`, done => {
|
it(`${testName} should pre-compile to fill disk cache (2nd)`, done => {
|
||||||
rimraf.sync(outputDirectory);
|
rimraf.sync(outputDirectory);
|
||||||
fs.mkdirSync(outputDirectory, { recursive: true });
|
fs.mkdirSync(outputDirectory, { recursive: true });
|
||||||
infraStructureLog.length = 0;
|
infraStructureLog.length = 0;
|
||||||
const deprecationTracker = deprecationTracking.start();
|
const deprecationTracker = deprecationTracking.start();
|
||||||
require("..")(options, (err, stats) => {
|
const compiler = require("..")(options);
|
||||||
|
compiler.run((err, stats) => {
|
||||||
deprecationTracker();
|
deprecationTracker();
|
||||||
if (err) return handleFatalError(err, done);
|
if (err) return handleFatalError(err, done);
|
||||||
const { modules, children, errorsCount } = stats.toJson({
|
const { modules, children, errorsCount } = stats.toJson({
|
||||||
|
@ -299,8 +304,11 @@ const describeCases = config => {
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
compiler.close(closeErr => {
|
||||||
|
if (err) return handleFatalError(closeErr, done);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}, 40000);
|
}, 40000);
|
||||||
}
|
}
|
||||||
it(`${testName} should compile`, done => {
|
it(`${testName} should compile`, done => {
|
||||||
|
|
Loading…
Reference in New Issue