From 69a0f60d32607c4edb19c56b8e41633184fae908 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Tue, 29 Oct 2019 11:45:33 +0100 Subject: [PATCH] [FEATURE] Run the functional tests in parallel (#58) --- .travis.yml | 5 +++++ CHANGELOG.md | 1 + composer.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c79518e..79f4a67 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,11 @@ sudo: false language: php +addons: + apt: + packages: + - parallel + services: - mysql diff --git a/CHANGELOG.md b/CHANGELOG.md index 68f8c09..7dd806b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ## x.y.z ### Added +- Run the functional tests in parallel (#58) - Add PHP-CS-Fixer (#53) - Add support for PHP 7.3 (#51) - Add support for TYPO3 9.6 (#48) diff --git a/composer.json b/composer.json index c84fb99..596d315 100644 --- a/composer.json +++ b/composer.json @@ -67,7 +67,7 @@ "ci:php:sniff": "phpcs Classes Tests", "ci:ts:lint": "typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript/", "ci:tests:unit": "phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit/", - "ci:tests:functional": "phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml Tests/Functional/", + "ci:tests:functional": "find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml {}';", "ci:tests": [ "@ci:tests:unit", "@ci:tests:functional"