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
|
- 1.9.2
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# - DB=postgres BUILD_TYPE=other
|
- DB=postgres BUILD_TYPE=other
|
||||||
- DB=mysql BUILD_TYPE=other
|
- DB=mysql BUILD_TYPE=other
|
||||||
# - DB=postgres BUILD_TYPE=cucumber
|
- DB=postgres BUILD_TYPE=cucumber
|
||||||
- DB=mysql BUILD_TYPE=cucumber
|
- DB=mysql BUILD_TYPE=cucumber
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
|
|
||||||
|
|
@ -38,3 +38,6 @@ integration1:
|
||||||
integration2:
|
integration2:
|
||||||
<<: *common
|
<<: *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"
|
echo "Setting up database.yml for $DB"
|
||||||
cp config/database.yml.example config/database.yml
|
cp config/database.yml.example config/database.yml
|
||||||
if [ "$DB" = "postgres" ]; then
|
if [ "$DB" = "postgres" ]; then
|
||||||
sed -i 's/*mysql/*postgres/' config/database.yml
|
sed -i 's/*mysql/*postgres_travis/' config/database.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set up database
|
# Set up database
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue