未验证 提交 724f0662 编写于 作者: M Mr.doob 提交者: GitHub

Update puppeteer.js

上级 305c488a
......@@ -143,8 +143,8 @@ const pup = puppeteer.launch( {
let pageSize, file, attemptProgress;
const failedScreenshots = [];
const isParallel = 'CI' in process.env;
const beginId = isParallel ? Math.floor( parseInt( process.env.CI.slice( 0, 1 ) ) * files.length / 4 ) : 0;
const endId = isParallel ? Math.floor( ( parseInt( process.env.CI.slice( - 1 ) ) + 1 ) * files.length / 4 ) : files.length;
const beginId = isParallel ? Math.floor( parseInt( process.env.CI.slice( 0, 1 ) ) * files.length / 8 ) : 0;
const endId = isParallel ? Math.floor( ( parseInt( process.env.CI.slice( - 1 ) ) + 1 ) * files.length / 8 ) : files.length;
for ( let id = beginId; id < endId; ++ id ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册