Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

PHPUnit XML configs for other db drivers on TeamCity

  • Loading branch information...
commit c8dbcf73a366d78e8d15d1fa7a12b1cd2c602de3 1 parent 1ca61a5
Ingo Schommer authored July 04, 2012
31  phpunit.teamcity.mssql.xml
... ...
@@ -0,0 +1,31 @@
  1
+<phpunit bootstrap="framework/tests/bootstrap.php" colors="false" backupGlobals="false" backupStaticAttributes="false" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" syntaxCheck="false" verbose="true" strict="true">
  2
+
  3
+	<testsuite name="Default">
  4
+		<directory>mysite/tests</directory>
  5
+		<directory>cms/tests</directory>
  6
+		<directory>framework/tests</directory>
  7
+		<directory>mssql/tests</directory>
  8
+	</testsuite>
  9
+
  10
+	<listeners>
  11
+		<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
  12
+    	<listener class="TeamCityListener" file="framework/dev/TeamCityListener.php"/>
  13
+	</listeners>
  14
+
  15
+	<groups>
  16
+		<exclude>
  17
+			<group>sanitychecks</group>
  18
+		</exclude>
  19
+	</groups>
  20
+
  21
+	<!-- 
  22
+		Set different database connection.
  23
+		Relies on the presence of the 'zframeworktest_dbswitcher' module
  24
+		(https://github.com/silverstripe-labs/zframeworktest_dbswitcher),
  25
+		as well as on constants in _ss_environment.php (see module README).
  26
+	-->
  27
+	<php>
  28
+	  <get name="db" value="mssql"/>
  29
+	</php>
  30
+
  31
+</phpunit>
31  phpunit.teamcity.postgresql.xml
... ...
@@ -0,0 +1,31 @@
  1
+<phpunit bootstrap="framework/tests/bootstrap.php" colors="false" backupGlobals="false" backupStaticAttributes="false" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" syntaxCheck="false" verbose="true" strict="true">
  2
+
  3
+	<testsuite name="Default">
  4
+		<directory>mysite/tests</directory>
  5
+		<directory>cms/tests</directory>
  6
+		<directory>framework/tests</directory>
  7
+		<directory>postgresql/tests</directory>
  8
+	</testsuite>
  9
+
  10
+	<listeners>
  11
+		<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
  12
+    	<listener class="TeamCityListener" file="framework/dev/TeamCityListener.php"/>
  13
+	</listeners>
  14
+
  15
+	<groups>
  16
+		<exclude>
  17
+			<group>sanitychecks</group>
  18
+		</exclude>
  19
+	</groups>
  20
+
  21
+	<!-- 
  22
+		Set different database connection.
  23
+		Relies on the presence of the 'zframeworktest_dbswitcher' module
  24
+		(https://github.com/silverstripe-labs/zframeworktest_dbswitcher),
  25
+		as well as on constants in _ss_environment.php (see module README).
  26
+	-->
  27
+	<php>
  28
+	  <get name="db" value="postgresql"/>
  29
+	</php>
  30
+
  31
+</phpunit>
31  phpunit.teamcity.sqlite3.xml
... ...
@@ -0,0 +1,31 @@
  1
+<phpunit bootstrap="framework/tests/bootstrap.php" colors="false" backupGlobals="false" backupStaticAttributes="false" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" syntaxCheck="false" verbose="true" strict="true">
  2
+
  3
+	<testsuite name="Default">
  4
+		<directory>mysite/tests</directory>
  5
+		<directory>cms/tests</directory>
  6
+		<directory>framework/tests</directory>
  7
+		<directory>sqlite3/tests</directory>
  8
+	</testsuite>
  9
+
  10
+	<listeners>
  11
+		<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
  12
+    	<listener class="TeamCityListener" file="framework/dev/TeamCityListener.php"/>
  13
+	</listeners>
  14
+
  15
+	<groups>
  16
+		<exclude>
  17
+			<group>sanitychecks</group>
  18
+		</exclude>
  19
+	</groups>
  20
+
  21
+	<!-- 
  22
+		Set different database connection.
  23
+		Relies on the presence of the 'zframeworktest_dbswitcher' module
  24
+		(https://github.com/silverstripe-labs/zframeworktest_dbswitcher),
  25
+		as well as on constants in _ss_environment.php (see module README).
  26
+	-->
  27
+	<php>
  28
+	  <get name="db" value="sqlite3"/>
  29
+	</php>
  30
+
  31
+</phpunit>

0 notes on commit c8dbcf7

Please sign in to comment.
Something went wrong with that request. Please try again.