Commit 2ce40e1d authored by qa_quantgroup's avatar qa_quantgroup

update

parent 3aa29760
...@@ -16,6 +16,8 @@ if [ -n "$db_name" ];then ...@@ -16,6 +16,8 @@ if [ -n "$db_name" ];then
if [ -f $db_name.sql ];then if [ -f $db_name.sql ];then
echo "mysql -h $mysql_host -uqa -pqatest < $db_name.sql" echo "mysql -h $mysql_host -uqa -pqatest < $db_name.sql"
mysql -h $mysql_host -uqa -pqatest < $db_name.sql mysql -h $mysql_host -uqa -pqatest < $db_name.sql
else
echo "have no $db_name.sql"
fi fi
else else
for entry in ./* for entry in ./*
......
...@@ -109,8 +109,11 @@ then ...@@ -109,8 +109,11 @@ then
echo "sync all database schema" echo "sync all database schema"
for db_name in $database_list for db_name in $database_list
do do
db_schema_sync $db_name echo "----------------------------------------------------"
echo $db_name echo "--- start sync db_name---"
db_schema_sync $db_name
echo "--- end sync db_name---"
echo "----------------------------------------------------"
done done
echo $run_sql_file echo $run_sql_file
run_sql_file run_sql_file
......
...@@ -46,6 +46,7 @@ else ...@@ -46,6 +46,7 @@ else
echo "没有bower,不需要执行" echo "没有bower,不需要执行"
fi fi
echo "$command"
$command $command
if [ $? != 0 ];then if [ $? != 0 ];then
exit -1 exit -1
......
...@@ -4,4 +4,8 @@ grep "Got error: 104" log ...@@ -4,4 +4,8 @@ grep "Got error: 104" log
if [ $? = 0 ];then if [ $? = 0 ];then
exit -1 exit -1
fi fi
grep "doesn't exist" log
if [ $? = 0 ];then
exit -1
fi
echo "post_build_script_sync_db finish~" echo "post_build_script_sync_db finish~"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment