remove parallel

This commit is contained in:
Pig Fang 2019-02-18 11:59:25 +08:00
parent 083a0a2895
commit e62744dc21
2 changed files with 0 additions and 22 deletions

View File

@ -4,7 +4,6 @@ jobs:
pool:
vmImage: 'Ubuntu-16.04'
strategy:
parallel: 3
matrix:
'7.1':
phpVersion: 7.1

View File

@ -1,21 +0,0 @@
const execa = require('execa');
const TOTAL_AGENTS = +process.env.SYSTEM_TOTALJOBSINPHASE || 1;
const AGENT_NUMBER = +process.env.SYSTEM_JOBPOSITIONINPHASE || 1;
const tests = execa
.sync('./vendor/bin/phpunit', ['--list-tests'])
.stdout
.split(/\r?\n/)
.filter(line => line.startsWith(' - Tests'))
.map(line => line.replace(' - Tests\\', ''));
const toBeRun = [];
for (let i = AGENT_NUMBER, length = tests.length; i <= length; i = i + TOTAL_AGENTS) {
toBeRun.push(test[i - 1]);
}
execa('./vendor/bin/phpunit', [
`--filter='(${toBeRun.join('|')})'`,
`--log-junit=./junitReports/junit_${AGENT_NUMBER}.xml`
]).stdout.pipe(process.stdout);