Permalink
Browse files

testing db matrix on travis

  • Loading branch information...
stliu committed Apr 12, 2012
1 parent 93eb4c2 commit 3afa210a29e4cef3fd740237b9ed197bd6d84a0b
View
@@ -4,16 +4,16 @@ before_install : "echo 'before install is running'"
install : "echo 'install is running'"
after_install : "echo 'after install is running'"
-# optionally specify a list of environments, for example to test different RDBMS
-# env:
-# - DB=mysql
-# - DB=pgsql
+optionally specify a list of environments, for example to test different RDBMS
+env:
+ - DB=mysql51
+ - DB=postgresql84
# execute any number of scripts before the test run, custom env's are available as variables
-# before_script:
-# - if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS hibernate;" -U postgres; fi
-# - if [[ "$DB" == "pgsql" ]]; then psql -c "create database hibernate;" -U postgres; fi
-# - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS hibernate;" -uroot; fi
-script : "./gradlew test"
+before_script:
+ - if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS hibernate;" -U postgres; fi
+ - if [[ "$DB" == "pgsql" ]]; then psql -c "create database hibernate;" -U postgres; fi
+ - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS hibernate;" -uroot; fi
+script : "./gradlew matrix_${DB}"
notifications:
irc: "irc.freenode.org#hibernate-ci"
@@ -29,8 +29,8 @@ hibernate.connection.driver_class com.mysql.jdbc.Driver
#hibernate.connection.password dballo01
hibernate.connection.url jdbc:mysql://127.0.0.1:3306/hibernate
-hibernate.connection.username hibernate
-hibernate.connection.password hibernate
+hibernate.connection.username root
+
hibernate.connection.pool_size 5
@@ -25,8 +25,8 @@
hibernate.dialect org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.driver_class org.postgresql.Driver
hibernate.connection.url jdbc:postgresql://localhost/hibernate
-hibernate.connection.username hibernate
-hibernate.connection.password hibernate
+hibernate.connection.username postgres
+
hibernate.connection.pool_size 5

0 comments on commit 3afa210

Please sign in to comment.