[TASK] Execute Extbase and Fluid tests on travis
authorHelmut Hummel <helmut.hummel@typo3.org>
Sat, 30 Jun 2012 12:50:02 +0000 (14:50 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 19 Aug 2012 11:19:04 +0000 (13:19 +0200)
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
tests/Build/UnitTests.xml [new file with mode: 0644]

index 0f1371f..83d890b 100644 (file)
@@ -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 (file)
index 0000000..f0d04ad
--- /dev/null
@@ -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>