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);