Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
2ce40e1d
Commit
2ce40e1d
authored
Sep 22, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
3aa29760
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
db_execute_sql.sh
db-utils/db_execute_sql.sh
+2
-0
db_schema_sync.sh
db-utils/db_schema_sync.sh
+5
-2
buildUi.sh
qa_shell_script/base_script/buildUi.sh
+1
-0
post_build_script_sync_db.sh
qa_shell_script/jenkins/post_build_script_sync_db.sh
+4
-0
No files found.
db-utils/db_execute_sql.sh
View file @
2ce40e1d
...
...
@@ -16,6 +16,8 @@ if [ -n "$db_name" ];then
if
[
-f
$db_name
.sql
]
;
then
echo
"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
else
for
entry
in
./
*
...
...
db-utils/db_schema_sync.sh
View file @
2ce40e1d
...
...
@@ -109,8 +109,11 @@ then
echo
"sync all database schema"
for
db_name
in
$database_list
do
db_schema_sync
$db_name
echo
$db_name
echo
"----------------------------------------------------"
echo
"--- start sync db_name---"
db_schema_sync
$db_name
echo
"--- end sync db_name---"
echo
"----------------------------------------------------"
done
echo
$run_sql_file
run_sql_file
...
...
qa_shell_script/base_script/buildUi.sh
View file @
2ce40e1d
...
...
@@ -46,6 +46,7 @@ else
echo
"没有bower,不需要执行"
fi
echo
"
$command
"
$command
if
[
$?
!=
0
]
;
then
exit
-1
...
...
qa_shell_script/jenkins/post_build_script_sync_db.sh
View file @
2ce40e1d
...
...
@@ -4,4 +4,8 @@ grep "Got error: 104" log
if
[
$?
=
0
]
;
then
exit
-1
fi
grep
"doesn't exist"
log
if
[
$?
=
0
]
;
then
exit
-1
fi
echo
"post_build_script_sync_db finish~"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment