[TASK] Run functional tests without xdebug on bamboo 01/58801/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:27 +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/58801
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 981273c..827d558 100644 (file)
@@ -566,7 +566,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"
@@ -636,7 +636,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"
@@ -703,7 +703,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"
@@ -766,7 +766,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-sqlite --log-junit test-reports/phpunit.xml -c " + this.testingFrameworkBuildPath + "FunctionalTests-Job-" + i + ".xml"