Little helper for builds.

This commit is contained in:
Martin Edenhofer 2015-11-22 03:01:41 +01:00
parent 8c3ad8d8f4
commit 8c819cee3f

14
script/build/test_db_config.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
DBNAME=$1
DBFILE=config/database.yml2
echo "Creating $DBFILE for tests with dbname $DBNAME"
echo "test:" > $DBFILE
echo " adapter: mysql2" >> $DBFILE
echo " database: $DBNAME" >> $DBFILE
echo " pool: 50" >> $DBFILE
echo " timeout: 5000" >> $DBFILE
echo " encoding: utf8" >> $DBFILE
echo " username: root" >> $DBFILE
echo " password:" >> $DBFILE