From e62744dc21e2177a3be2f9d675df99dd92c0e9b4 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Mon, 18 Feb 2019 11:59:25 +0800 Subject: [PATCH] remove parallel --- azure-pipelines.yml | 1 - scripts/distribute-test.js | 21 --------------------- 2 files changed, 22 deletions(-) delete mode 100644 scripts/distribute-test.js diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 73e9fd5d..2eb76fed 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -4,7 +4,6 @@ jobs: pool: vmImage: 'Ubuntu-16.04' strategy: - parallel: 3 matrix: '7.1': phpVersion: 7.1 diff --git a/scripts/distribute-test.js b/scripts/distribute-test.js deleted file mode 100644 index 1154fc9d..00000000 --- a/scripts/distribute-test.js +++ /dev/null @@ -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);