From a3870c2c95bb6a7266825daa03d9db0884453dac Mon Sep 17 00:00:00 2001 From: DaSourcerer Date: Fri, 26 Jul 2013 19:35:53 +0200 Subject: [PATCH 1/2] Removed DB env --- .travis.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 01abd50..0bfe325 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,11 +5,8 @@ php: - 5.4 - 5.5 -env: - - DB=mysql - before_script: - - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS yiitest;'; fi" + - mysql -e 'create database IF NOT EXISTS yiitest;'; - psql -U postgres -c 'drop database if exists yiitest;'; - psql -U postgres -c 'create database yiitest;'; script: phpunit \ No newline at end of file From 6e4879c6f6068231ff1555c7265aceb412ae43e3 Mon Sep 17 00:00:00 2001 From: DaSourcerer Date: Fri, 26 Jul 2013 19:43:11 +0200 Subject: [PATCH 2/2] Simplified database setup --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0bfe325..1c15d1d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ php: - 5.5 before_script: - - mysql -e 'create database IF NOT EXISTS yiitest;'; - - psql -U postgres -c 'drop database if exists yiitest;'; - - psql -U postgres -c 'create database yiitest;'; + - mysql -e 'CREATE DATABASE yiitest;'; + - psql -U postgres -c 'CREATE DATABASE yiitest;'; + script: phpunit \ No newline at end of file