[TASK] Execute functional tests and lint in parallel 29/27529/3
authorHelmut Hummel <helmut.hummel@typo3.org>
Mon, 10 Feb 2014 18:18:50 +0000 (19:18 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 10 Feb 2014 19:26:26 +0000 (20:26 +0100)
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

index 70282dd..a07aa80 100644 (file)
@@ -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