From 9574e046392b93ff7baa640de4151c53dc6fa2f0 Mon Sep 17 00:00:00 2001
From: Helmut Hummel <helmut.hummel@typo3.org>
Date: Sat, 30 Jun 2012 14:50:02 +0200
Subject: [PATCH] [TASK] Execute Extbase and Fluid tests on travis

Until now no tests from system extensions are executed
on travis ci.

Add a phpunit configuration file and add Extbase and Fluid
tests as test suites. Be aware that travis currently uses
the current submodule pointer and does not check out master
of submodules.

Resolves: #39954
Releases: 6.0
Change-Id: I949a65b0f1628fdfa4515e3fb4536517430dccac
Reviewed-on: http://review.typo3.org/13912
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
---
 .travis.yml               |  2 +-
 tests/Build/UnitTests.xml | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 tests/Build/UnitTests.xml

diff --git a/.travis.yml b/.travis.yml
index 0f1371fc0f39..83d890bcf4bd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,4 +29,4 @@ before_script:
   - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/Introduction/typo3conf/ext/introduction/Resources/Private/Subpackages/Introduction/Database/introduction.sql; fi
   - if [[ "$DB" == "mysql" ]]; then mysql -uroot typo3_test < build-environment/dbimport/cli_users.sql; fi
 
-script: php $PWD/typo3/cli_dispatch.phpsh phpunit $PWD/tests/
+script: php $PWD/typo3/cli_dispatch.phpsh phpunit -c tests/Build/UnitTests.xml
diff --git a/tests/Build/UnitTests.xml b/tests/Build/UnitTests.xml
new file mode 100644
index 000000000000..f0d04ad6abcf
--- /dev/null
+++ b/tests/Build/UnitTests.xml
@@ -0,0 +1,27 @@
+<phpunit backupGlobals="false"
+	backupStaticAttributes="false"
+	colors="false"
+	convertErrorsToExceptions="true"
+	convertWarningsToExceptions="true"
+	forceCoversAnnotation="false"
+	processIsolation="false"
+	stopOnError="false"
+	stopOnFailure="false"
+	stopOnIncomplete="false"
+	stopOnSkipped="false"
+	strict="false"
+	verbose="false">
+
+	<testsuites>
+		<testsuite name="Core Tests">
+			<directory>../../tests/</directory>
+		</testsuite>
+		<testsuite name="Extbase Tests">
+			<directory>../../typo3/sysext/extbase/[Tt]ests/</directory>
+		</testsuite>
+		<testsuite name="Fluid Tests">
+			<directory>../../typo3/sysext/fluid/[Tt]ests/</directory>
+		</testsuite>
+	</testsuites>
+
+</phpunit>
-- 
GitLab