From 41a4f981e4d094e24ef4eabfd5beea9579480d84 Mon Sep 17 00:00:00 2001
From: Helmut Hummel <helmut.hummel@typo3.org>
Date: Mon, 10 Feb 2014 19:18:50 +0100
Subject: [PATCH] [TASK] Execute functional tests and lint in parallel

Change-Id: Icab8cd1d7f4b9a56f10ed7fc1f6e945ff50b295c
Reviewed-on: https://review.typo3.org/27529
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
---
 .travis.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 70282dd7ddf2..a07aa807e303 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,6 +20,7 @@ services:
   - memcached
 
 before_script:
+  - sudo apt-get install parallel
   - sudo apt-get update && sudo apt-get install git
   - git clone --single-branch --branch master --depth 1 git://github.com/typo3-ci/TYPO3-Travis-Integration.git build-environment
   - source build-environment/install-helper.sh
@@ -63,7 +64,7 @@ script:
     elif [[ "$UNITTESTS" == "1" ]]; then
     	./typo3conf/ext/phpunit/Composer/vendor/bin/phpunit -c typo3/sysext/core/Build/UnitTests.xml
     elif [[ "$FUNCTIONALTESTS" == "1" ]]; then
-    	./typo3conf/ext/phpunit/Composer/vendor/bin/phpunit -c typo3/sysext/core/Build/FunctionalTests.xml
+    	grep directory typo3/sysext/core/Build/FunctionalTests.xml | sed 's#[	]*<directory>\.\./\.\./\.\./\.\./\(typo3/sysext.*\)</directory>$#\1#g' | parallel --gnu --keep-order 'echo "Running {} tests"; ./typo3conf/ext/phpunit/Composer/vendor/bin/phpunit -c typo3/sysext/core/Build/FunctionalTests.xml {}'
     else
     	exit 1
     fi
-- 
GitLab