use profiles for qa/qe builds

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@12830 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Steve Ebersole 2007-07-26 20:51:32 +00:00
parent 210f4faa61
commit f14257037b
11 changed files with 518 additions and 5 deletions

View File

@ -104,7 +104,7 @@
<plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-test-ext-plugin</artifactId>
<version>1.0.3</version>
<version>1.1.0</version>
<executions>
<execution>
<goals>
@ -128,9 +128,248 @@
</plugins>
</build>
<properties>
<test.extender.cfg>${basedir}/src/test/profile/hsqldb/hsqldb-env.xml</test.extender.cfg>
<test.extender.env>hsqldb</test.extender.env>
</properties>
<!-- Set up profiles defining test environments -->
<profiles>
<!-- HSQLDB is the default (eventually move to H2) -->
<profile>
<id>hsqldb</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>1.8.0.2</version>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>${basedir}/src/test/profile/hsqldb</directory>
<filtering>false</filtering>
<includes>
<include>hibernate.properties</include>
</includes>
</testResource>
</testResources>
</build>
</profile>
<!-- The H2 test envionment -->
<profile>
<id>h2</id>
<dependencies>
<dependency>
<groupId>org.h2database</groupId>
<artifactId>h2database</artifactId>
<version>1.0.20061217</version>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>${basedir}/src/test/profile/h2</directory>
<filtering>false</filtering>
<includes>
<include>hibernate.properties</include>
</includes>
</testResource>
</testResources>
</build>
</profile>
<!--
Profiles naming db instances in the Red Hat QA/QE lab
-->
<!-- The MySQL5 test envionment -->
<profile>
<id>mysql5</id>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.0.5</version>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>${basedir}/src/test/profile/rh-qa/mysql5</directory>
<filtering>false</filtering>
<includes>
<include>hibernate.properties</include>
</includes>
</testResource>
</testResources>
</build>
</profile>
<!-- The PostgreSQL test envionment -->
<profile>
<id>pgsql8</id>
<dependencies>
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>8.2-504</version>
<classifier>jdbc3</classifier>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>${basedir}/src/test/profile/rh-qa/pgsql8</directory>
<filtering>false</filtering>
<includes>
<include>hibernate.properties</include>
</includes>
</testResource>
</testResources>
</build>
</profile>
<!-- The Oracle9i test envionment -->
<profile>
<id>oracle9i</id>
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<!-- use the 10g drivers which are surprisingly largely bug free -->
<version>10.0.2.0</version>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>${basedir}/src/test/profile/rh-qa/oracle9i</directory>
<filtering>false</filtering>
<includes>
<include>hibernate.properties</include>
</includes>
</testResource>
</testResources>
</build>
</profile>
<!-- The Oracle10g test envionment -->
<profile>
<id>oracle10g</id>
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<!-- use the 10g drivers which are surprisingly largely bug free -->
<version>10.0.2.0</version>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>${basedir}/src/test/profile/rh-qa/oracle10g</directory>
<filtering>false</filtering>
<includes>
<include>hibernate.properties</include>
</includes>
</testResource>
</testResources>
</build>
</profile>
<!-- The DB2 8.x test envionment -->
<profile>
<id>db2-8</id>
<dependencies>
<dependency>
<groupId>com.ibm</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.0.2.0</version>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>${basedir}/src/test/profile/rh-qa/db2-8</directory>
<filtering>false</filtering>
<includes>
<include>hibernate.properties</include>
</includes>
</testResource>
</testResources>
</build>
</profile>
<!-- The Sybase 12 test envionment -->
<profile>
<id>sybase12</id>
<dependencies>
<dependency>
<groupId>com.sybase</groupId>
<artifactId>jconnect</artifactId>
<version>6.0.5</version>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>${basedir}/src/test/profile/rh-qa/sybase12</directory>
<filtering>false</filtering>
<includes>
<include>hibernate.properties</include>
</includes>
</testResource>
</testResources>
</build>
</profile>
<!-- The SQLServer2005 (jTDS) test envionment -->
<profile>
<id>sqlserver-jtds</id>
<dependencies>
<dependency>
<groupId>net.sourceforge.jtds</groupId>
<artifactId>jtds</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>${basedir}/src/test/profile/rh-qa/sqlserver2005/jtds</directory>
<filtering>false</filtering>
<includes>
<include>hibernate.properties</include>
</includes>
</testResource>
</testResources>
</build>
</profile>
<!-- The SQLServer2005 (MS JDBC) test envionment -->
<profile>
<id>sqlserver-msjdbc</id>
<dependencies>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>msjdbc</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>${basedir}/src/test/profile/rh-qa/sqlserver2005/msjdbc</directory>
<filtering>false</filtering>
<includes>
<include>hibernate.properties</include>
</includes>
</testResource>
</testResources>
</build>
</profile>
</profiles>
</project>

View File

@ -0,0 +1,29 @@
################################################################################
# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved. #
# #
# This copyrighted material is made available to anyone wishing to use, modify,#
# copy, or redistribute it subject to the terms and conditions of the GNU #
# Lesser General Public License, v. 2.1. This program is distributed in the #
# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# Lesser General Public License for more details. You should have received a #
# copy of the GNU Lesser General Public License, v.2.1 along with this #
# distribution; if not, write to the Free Software Foundation, Inc., #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #
# #
# Red Hat Author(s): Steve Ebersole #
################################################################################
hibernate.dialect org.hibernate.dialect.H2Dialect
hibernate.connection.url jdbc:h2:mem:target/test/db/h2/hibernate
hibernate.connection.driver_class org.h2.Driver
hibernate.connection.username sa
hibernate.connection.password
hibernate.connection.pool_size 5
hibernate.format_sql true
hibernate.max_fetch_depth 5
hibernate.cache.region_prefix hibernate.test
hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

View File

@ -0,0 +1,3 @@
These profiles represent databases inside the Red Hat QA labs. These machines are
not accessible from outside the lab; they are defined here for use in the
Continuous-Integration builds of Hibernate.

View File

@ -0,0 +1,29 @@
################################################################################
# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved. #
# #
# This copyrighted material is made available to anyone wishing to use, modify,#
# copy, or redistribute it subject to the terms and conditions of the GNU #
# Lesser General Public License, v. 2.1. This program is distributed in the #
# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# Lesser General Public License for more details. You should have received a #
# copy of the GNU Lesser General Public License, v.2.1 along with this #
# distribution; if not, write to the Free Software Foundation, Inc., #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #
# #
# Red Hat Author(s): Steve Ebersole #
################################################################################
hibernate.dialect org.hibernate.dialect.DB2Dialect
hibernate.connection.driver_class com.ibm.db2.jcc.DB2Driver
hibernate.connection.url jdbc:db2://dev32.qa.atl.jboss.com:50000/jbossqa
hibernate.connection.username hiber
hibernate.connection.password hiber
hibernate.connection.pool_size 5
hibernate.format_sql true
hibernate.max_fetch_depth 5
hibernate.cache.region_prefix hibernate.test
hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

View File

@ -0,0 +1,29 @@
################################################################################
# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved. #
# #
# This copyrighted material is made available to anyone wishing to use, modify,#
# copy, or redistribute it subject to the terms and conditions of the GNU #
# Lesser General Public License, v. 2.1. This program is distributed in the #
# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# Lesser General Public License for more details. You should have received a #
# copy of the GNU Lesser General Public License, v.2.1 along with this #
# distribution; if not, write to the Free Software Foundation, Inc., #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #
# #
# Red Hat Author(s): Steve Ebersole #
################################################################################
hibernate.dialect org.hibernate.dialect.MySQL5InnoDBDialect
hibernate.connection.driver_class com.mysql.jdbc.Driver
hibernate.connection.url jdbc:mysql://dev02.qa.atl.jboss.com/cruisecontrol
hibernate.connection.username cruisecontrol
hibernate.connection.password cruisecontrol
hibernate.connection.pool_size 5
hibernate.format_sql true
hibernate.max_fetch_depth 5
hibernate.cache.region_prefix hibernate.test
hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

View File

@ -0,0 +1,29 @@
################################################################################
# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved. #
# #
# This copyrighted material is made available to anyone wishing to use, modify,#
# copy, or redistribute it subject to the terms and conditions of the GNU #
# Lesser General Public License, v. 2.1. This program is distributed in the #
# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# Lesser General Public License for more details. You should have received a #
# copy of the GNU Lesser General Public License, v.2.1 along with this #
# distribution; if not, write to the Free Software Foundation, Inc., #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #
# #
# Red Hat Author(s): Steve Ebersole #
################################################################################
hibernate.dialect org.hibernate.dialect.Oracle10gDialect
hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver
hibernate.connection.username cruisecontrol
hibernate.connection.password cruisecontrol
hibernate.connection.url jdbc:oracle:thin:@dev01.qa.atl.jboss.com:1521:qadb01
hibernate.connection.pool_size 5
hibernate.format_sql true
hibernate.max_fetch_depth 5
hibernate.cache.region_prefix hibernate.test
hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

View File

@ -0,0 +1,29 @@
################################################################################
# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved. #
# #
# This copyrighted material is made available to anyone wishing to use, modify,#
# copy, or redistribute it subject to the terms and conditions of the GNU #
# Lesser General Public License, v. 2.1. This program is distributed in the #
# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# Lesser General Public License for more details. You should have received a #
# copy of the GNU Lesser General Public License, v.2.1 along with this #
# distribution; if not, write to the Free Software Foundation, Inc., #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #
# #
# Red Hat Author(s): Steve Ebersole #
################################################################################
hibernate.dialect org.hibernate.dialect.Oracle9iDialect
hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver
hibernate.connection.username cruisecontrol
hibernate.connection.password cruisecontrol
hibernate.connection.url jdbc:oracle:thin:@dev20.qa.atl.jboss.com:1521:qa
hibernate.connection.pool_size 5
hibernate.format_sql true
hibernate.max_fetch_depth 5
hibernate.cache.region_prefix hibernate.test
hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

View File

@ -0,0 +1,29 @@
################################################################################
# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved. #
# #
# This copyrighted material is made available to anyone wishing to use, modify,#
# copy, or redistribute it subject to the terms and conditions of the GNU #
# Lesser General Public License, v. 2.1. This program is distributed in the #
# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# Lesser General Public License for more details. You should have received a #
# copy of the GNU Lesser General Public License, v.2.1 along with this #
# distribution; if not, write to the Free Software Foundation, Inc., #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #
# #
# Red Hat Author(s): Steve Ebersole #
################################################################################
hibernate.dialect org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.driver_class org.postgresql.Driver
hibernate.connection.url jdbc:postgresql://dev01.qa.atl.jboss.com:5432:cruisecontrol
hibernate.connection.username cruisecontrol
hibernate.connection.password cruisecontrol
hibernate.connection.pool_size 5
hibernate.format_sql true
hibernate.max_fetch_depth 5
hibernate.cache.region_prefix hibernate.test
hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

View File

@ -0,0 +1,38 @@
################################################################################
# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved. #
# #
# This copyrighted material is made available to anyone wishing to use, modify,#
# copy, or redistribute it subject to the terms and conditions of the GNU #
# Lesser General Public License, v. 2.1. This program is distributed in the #
# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# Lesser General Public License for more details. You should have received a #
# copy of the GNU Lesser General Public License, v.2.1 along with this #
# distribution; if not, write to the Free Software Foundation, Inc., #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #
# #
# Red Hat Author(s): Steve Ebersole #
################################################################################
hibernate.dialect org.hibernate.dialect.SQLServerDialect
hibernate.connection.driver_class net.sourceforge.jtds.jdbc.Driver
hibernate.connection.url jdbc:jtds:sqlserver://dev30.qa.atl.jboss.com:3918/cruisecontrol
hibernate.connection.username cruisecontrol
hibernate.connection.password cruisecontrol
#hibernate.connection.isolation 4096
#Isolation level is commneted because jtds 1.2 doesn't support it.
#But hibernate requires it.
#Workaround is to run on the sql server 2005 this:
#ALTER DATABASE cruisecontrol SET ALLOW_SNAPSHOT_ISOLATION ON;
#ALTER DATABASE cruisecontrol SET READ_COMMITTED_SNAPSHOT ON;
#Tip: no other connection to the database should be in the same time
hibernate.connection.pool_size 5
hibernate.format_sql true
hibernate.max_fetch_depth 5
hibernate.cache.region_prefix hibernate.test
hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

View File

@ -0,0 +1,30 @@
################################################################################
# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved. #
# #
# This copyrighted material is made available to anyone wishing to use, modify,#
# copy, or redistribute it subject to the terms and conditions of the GNU #
# Lesser General Public License, v. 2.1. This program is distributed in the #
# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# Lesser General Public License for more details. You should have received a #
# copy of the GNU Lesser General Public License, v.2.1 along with this #
# distribution; if not, write to the Free Software Foundation, Inc., #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #
# #
# Red Hat Author(s): Steve Ebersole #
################################################################################
hibernate.dialect org.hibernate.dialect.SQLServerDialect
hibernate.connection.driver_class com.microsoft.sqlserver.jdbc.SQLServerDriver
hibernate.connection.url jdbc:sqlserver://dev30.qa.atl.jboss.com:3918
hibernate.connection.username cruisecontrol
hibernate.connection.password cruisecontrol
hibernate.connection.isolation 4096
hibernate.connection.pool_size 5
hibernate.format_sql true
hibernate.max_fetch_depth 5
hibernate.cache.region_prefix hibernate.test
hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

View File

@ -0,0 +1,29 @@
################################################################################
# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved. #
# #
# This copyrighted material is made available to anyone wishing to use, modify,#
# copy, or redistribute it subject to the terms and conditions of the GNU #
# Lesser General Public License, v. 2.1. This program is distributed in the #
# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# Lesser General Public License for more details. You should have received a #
# copy of the GNU Lesser General Public License, v.2.1 along with this #
# distribution; if not, write to the Free Software Foundation, Inc., #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #
# #
# Red Hat Author(s): Steve Ebersole #
################################################################################
hibernate.dialect org.hibernate.dialect.SybaseDialect
hibernate.connection.driver_class com.sybase.jdbc3.jdbc.SybDriver
hibernate.connection.url jdbc:sybase:Tds:dev01.qa.atl.jboss.com:4100/cruisecontrol
hibernate.connection.username cruisecontrol
hibernate.connection.password cruisecontrol
hibernate.connection.pool_size 5
hibernate.format_sql true
hibernate.max_fetch_depth 5
hibernate.cache.region_prefix hibernate.test
hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider