reenable pg on travis but let it use a basic database.yml
This commit is contained in:
parent
f610cdce17
commit
8739d618ba
3 changed files with 7 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -37,4 +37,7 @@ integration1:
|
|||
database: diaspora_integration1
|
||||
integration2:
|
||||
<<: *common
|
||||
database: diaspora_integration2
|
||||
database: diaspora_integration2
|
||||
postgres_travis: &postgres_travis
|
||||
adapter: postgresql
|
||||
username: postgres
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue