From 8c819cee3fd1db0a675a97e4d04ab62db955fafb Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 22 Nov 2015 03:01:41 +0100 Subject: [PATCH] Little helper for builds. --- script/build/test_db_config.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 script/build/test_db_config.sh diff --git a/script/build/test_db_config.sh b/script/build/test_db_config.sh new file mode 100755 index 000000000..78e174a21 --- /dev/null +++ b/script/build/test_db_config.sh @@ -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