[TASK] Run functional tests without xdebug on bamboo 02/58802/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 30 Oct 2018 14:41:54 +0000 (15:41 +0100)
committerBenni Mack <benni@typo3.org>
Tue, 30 Oct 2018 15:07:35 +0000 (16:07 +0100)
With the increased number of functional tests in v9 we
should squeeze out as much performance as possible from
the tests so waiting for bamboo is not so annoying. Not
loading xdebug gives us roughly 10-30% for functionals.

Resolves: #86801
Releases: master, 8.7
Change-Id: Ic7b9dd4dd0c71799ecb7207fc0e7170f98729545
Reviewed-on: https://review.typo3.org/58802
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Build/bamboo/src/main/java/core/AbstractCoreSpec.java

index 4d8b4d2..a8b0f4e 100644 (file)
@@ -399,7 +399,7 @@ abstract public class AbstractCoreSpec {
                             "        --network ${BAMBOO_COMPOSE_PROJECT_NAME}_test \\\n" +
                             "        --rm \\\n" +
                             "        typo3gmbh/" + requirementIdentifier.toLowerCase() + ":latest \\\n" +
-                            "        bin/bash -c \"cd ${PWD}; ./bin/phpunit $*\"\n" +
+                            "        bin/bash -c \"cd ${PWD}; php -n -c /etc/php/cli-no-xdebug/php.ini bin/phpunit $*\"\n" +
                             "}\n" +
                             "\n" +
                             "phpunit --log-junit test-reports/phpunit.xml -c " + this.testingFrameworkBuildPath + "FunctionalTests-Job-" + i + ".xml"
@@ -463,7 +463,7 @@ abstract public class AbstractCoreSpec {
                             "        --network ${BAMBOO_COMPOSE_PROJECT_NAME}_test \\\n" +
                             "        --rm \\\n" +
                             "        typo3gmbh/" + requirementIdentifier.toLowerCase() + ":latest \\\n" +
-                            "        bin/bash -c \"cd ${PWD}; ./bin/phpunit $*\"\n" +
+                            "        bin/bash -c \"cd ${PWD}; php -n -c /etc/php/cli-no-xdebug/php.ini bin/phpunit $*\"\n" +
                             "}\n" +
                             "\n" +
                             "phpunit --exclude-group not-mssql --log-junit test-reports/phpunit.xml -c " + this.testingFrameworkBuildPath + "FunctionalTests-Job-" + i + ".xml"
@@ -524,7 +524,7 @@ abstract public class AbstractCoreSpec {
                             "        --network ${BAMBOO_COMPOSE_PROJECT_NAME}_test \\\n" +
                             "        --rm \\\n" +
                             "        typo3gmbh/" + requirementIdentifier.toLowerCase() + ":latest \\\n" +
-                            "        bin/bash -c \"cd ${PWD}; ./bin/phpunit $*\"\n" +
+                            "        bin/bash -c \"cd ${PWD}; php -n -c /etc/php/cli-no-xdebug/php.ini bin/phpunit $*\"\n" +
                             "}\n" +
                             "\n" +
                             "phpunit --exclude-group not-postgres --log-junit test-reports/phpunit.xml -c " + this.testingFrameworkBuildPath + "FunctionalTests-Job-" + i + ".xml"