reenable pg on travis but let it use a basic database.yml

This commit is contained in:
Jonne Haß 2012-04-10 21:36:57 +02:00
parent f610cdce17
commit 8739d618ba
3 changed files with 7 additions and 4 deletions

View file

@ -9,9 +9,9 @@ rvm:
- 1.9.2
env:
# - DB=postgres BUILD_TYPE=other
- DB=postgres BUILD_TYPE=other
- DB=mysql BUILD_TYPE=other
# - DB=postgres BUILD_TYPE=cucumber
- DB=postgres BUILD_TYPE=cucumber
- DB=mysql BUILD_TYPE=cucumber
before_install:

View file

@ -37,4 +37,7 @@ integration1:
database: diaspora_integration1
integration2:
<<: *common
database: diaspora_integration2
database: diaspora_integration2
postgres_travis: &postgres_travis
adapter: postgresql
username: postgres

View file

@ -23,7 +23,7 @@ sh -e /etc/init.d/xvfb start
echo "Setting up database.yml for $DB"
cp config/database.yml.example config/database.yml
if [ "$DB" = "postgres" ]; then
sed -i 's/*mysql/*postgres/' config/database.yml
sed -i 's/*mysql/*postgres_travis/' config/database.yml
fi
# Set up database