Browse Source

test more dbs

euromark 11 years ago
parent
commit
1dba3d3cdd
1 changed files with 5 additions and 1 deletions
  1. 5 1
      .travis.yml

+ 5 - 1
.travis.yml

@@ -4,7 +4,6 @@ php:
   - 5.3
   - 5.4
   - 5.5
-  - 5.6
 
 env:
   global:
@@ -13,6 +12,8 @@ env:
   matrix:
     - DB=mysql CAKE_VERSION=2.4
     - DB=mysql CAKE_VERSION=2.5
+    - DB=sqlite CAKE_VERSION=2.5 db_class='Cake\Database\Driver\Sqlite' db_dsn='sqlite::memory:'
+    - DB=pgsql CAKE_VERSION=2.5 db_class='Cake\Database\Driver\Postgres' db_dsn='pgsql:host=127.0.0.1;dbname=cakephp_test' db_database="cakephp_test" db_login='postgres' db_password=''
 
 matrix:
   include:
@@ -34,6 +35,9 @@ before_script:
   - cd ..
   - cp ../tools/phpunit.xml app/
 
+  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
+  - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"
+
 script:
   - ../travis/script.sh