From 8e6619bda59e8e0fbc3d28fd610fd13d5adea924 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Thu, 22 Mar 2012 15:59:03 -0400 Subject: [PATCH] Attempt with mysql --- .travis.yml | 15 ++++++++------- tests/databases/mysql.php | 4 ++++ tests/test_dbs/FB_TEST_DB.FDB | Bin 802816 -> 802816 bytes 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2f17ec4..a761e8c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,13 +5,14 @@ phps: - 5.3 - 5.4 -#env: -# - DB=mysql -# - DB=pgsql -# - DB=sqlite +env: + - DB=mysql + - DB=pgsql + - DB=sqlite -#before_script: -# - mysql -e 'CREATE DATABASE test;' -# - psql -c 'CREATE DATABASE test;' -U postgres +before_script: + - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS test;' -U postgres; fi" + - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database test;' -U postgres; fi" + - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS test;'; fi" script: php ./tests/index.php \ No newline at end of file diff --git a/tests/databases/mysql.php b/tests/databases/mysql.php index be81848..209fa6a 100644 --- a/tests/databases/mysql.php +++ b/tests/databases/mysql.php @@ -29,6 +29,10 @@ class MySQLTest extends DBTest { $this->db = new MySQL("host={$params->host};port={$params->port};dbname={$params->database}", $params->user, $params->pass); } + else + { + $this->db = new MySQL('host=127.0.0.1;dbname=test', 'root'); + } } function TestExists() diff --git a/tests/test_dbs/FB_TEST_DB.FDB b/tests/test_dbs/FB_TEST_DB.FDB index bc1490a9cf951918a091f30a47b5301433d8b0c1..66d271b68e96e0ce11efb07c7b770d526015c450 100755 GIT binary patch delta 371 zcmZo@Fl=Zr^kZbOG&m;BfB*vA4a`s;h_01lU}yqj1_ma^*|!)NLd?&rZx@9q5MW>e z!UQmf5lGfbZB|U!#NQ;)CcxMxz||& w1{fd2V`TjC7sh9R$TJpAXM6)RqHy}bN8BpYBVTbFPT%#8+iLrfSKKzC03aSxWB>pF delta 378 zcmYL_Jxc>Y5Qb;&^5N|u84E#^CZ|M25bp3q#4S~qval2NiD*_51;oR*xCoRvH!+3K-KF}8wqQM5B? zcJ?clbVSdg)csz6^6_Xq9AOTsRw5=hJ-iZS#`e1R+k~I;*0ssI2