From b5513c84a0d353c1b1067f51ad3de674967854b3 Mon Sep 17 00:00:00 2001 From: Gevik Babakhani Date: Thu, 6 Jun 2013 22:19:03 +0200 Subject: [PATCH] Added db creation for travis CI This needs to be done in two seperate command since postgres does not accept db creation in multiline statement. --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e4b8278038..b7ea5ceb90 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,10 @@ php: env: - DB=mysql + - DB=postgres before_script: - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS yiitest;'; fi" - + - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'drop database if exists yiitest;'; fi" + - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database yiitest;'; fi" script: phpunit \ No newline at end of file