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
f75e953e
Commit
f75e953e
authored
Aug 10, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change
parent
2aa26d29
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
469 additions
and
316 deletions
+469
-316
4_build_by_name.sh
qa_shell_script/4_build_by_name.sh
+153
-135
4_build_by_type.sh
qa_shell_script/4_build_by_type.sh
+158
-139
buildJava.sh
qa_shell_script/base_script/buildJava.sh
+34
-0
buildNode.sh
qa_shell_script/base_script/buildNode.sh
+23
-0
buildPython.sh
qa_shell_script/base_script/buildPython.sh
+36
-0
buildUi.sh
qa_shell_script/base_script/buildUi.sh
+18
-0
get_project_config.js
qa_shell_script/config_server/get_project_config.js
+47
-42
No files found.
qa_shell_script/4_build_by_name.sh
View file @
f75e953e
This diff is collapsed.
Click to expand it.
qa_shell_script/4_build_by_type.sh
View file @
f75e953e
This diff is collapsed.
Click to expand it.
qa_shell_script/base_script/buildJava.sh
0 → 100755
View file @
f75e953e
#!/bin/bash
project
=
$1
config_server
=
$2
project_path
=
$3
params
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc/target_path/command2
`
params_arry
=(
${
params
//|/
}
)
desc
=
${
params_arry
[0]
}
target_path
=
${
params_arry
[1]
}
build_command
=
${
params_arry
[2]//\^/
}
sh
$config_server
/show_info.sh
$project
BUILD
$desc
`
hostname
`
cd
$project_path
/
$project
rm
-rf
$target_path
rm
-rf
$project
.jar
nums
=(
`
awk
'/quantgroup-sms-sdk/ {print NR}'
$project_path
/
$project
/pom.xml
`
)
for
num
in
${
nums
[@]
}
do
lin
=
$[
$num
+1
]
echo
"
$lin
"
sed
-i
"
${
lin
}
s/^.*
$/
\<
version
\>
2.0.0.3-SNAPSHOT
\<\/
version
\>
/"
$project_path
/
$project
/pom.xml
done
echo
"
$build_command
"
$build_command
if
[
$?
=
0
]
;
then
echo
"
${
project
}
build ok"
else
echo
"
${
project
}
build fail"
exit
-1
fi
echo
"
$target_path
"
mv
$project_path
/
$project
/
$target_path
/
*
.jar
$project_path
/
$project
/
$project
.jar
\ No newline at end of file
qa_shell_script/base_script/buildNode.sh
0 → 100755
View file @
f75e953e
#!/bin/bash
project
=
$1
config_server
=
$2
project_path
=
$3
project
=
$1
params
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc/config_file/command/node_version
`
params_arry
=(
${
params
//|/
}
)
desc
=
${
params_arry
[0]
}
config_file
=
${
params_arry
[1]
}
command
=
${
params_arry
[2]//\^/
}
node_version
=
${
params_arry
[3]
}
sh
$config_server
/show_info.sh
$project
BUILD
$desc
`
hostname
`
# 第一步 将nginx项目的所有文件进行打包
cd
$project_path
/
$project
#第二步 关联配置文件
rm
-rf
./
$config_file
echo
"------ln -s
$config_path
/node/
$project
.* ./
$config_file
"
ln
-s
$config_path
/node/
$project
.
*
./
$config_file
npm config
set
"@types:registry"
http://registry.npmjs.org/
npm
--registry
http://172.16.3.15:4873
install
qa_shell_script/base_script/buildPython.sh
0 → 100755
View file @
f75e953e
#!/bin/bash
project
=
$1
config_server
=
$2
project_path
=
$3
params
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc/config_file/command/node_version
`
params_arry
=(
${
params
//|/
}
)
desc
=
${
params_arry
[0]
}
config_file
=
${
params_arry
[1]
}
command
=
${
params_arry
[2]//\^/
}
node_version
=
${
params_arry
[3]
}
sh
$config_server
/show_info.sh
$project
BUILD
$desc
`
hostname
`
# 第一步 将nginx项目的所有文件进行打包
cd
$project_path
/
$project
if
[
"
$node_version
"
=
"node4"
]
;
then
echo
"----node-V4---
${
node4_path
}
/npm install"
${
node4_path
}
/npm
install
else
npm
--registry
http://172.16.3.15:4873
install
fi
bower_json
=
`
find ./
-maxdepth
1
-name
"bower.json"
`
if
[
-n
"
$bower_json
"
]
;
then
echo
"bower install --allow-root"
bower
install
--allow-root
else
echo
"don't have bower.json"
fi
$command
# 第二步 不关机使得nginx生效
nginx
-t
;
nginx
-s
reload
\ No newline at end of file
qa_shell_script/base_script/buildUi.sh
0 → 100755
View file @
f75e953e
#!/bin/bash
project
=
$1
config_server
=
$2
project_path
=
$3
params
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc/config_file
`
params_arry
=(
${
params
//|/
}
)
desc
=
${
params_arry
[0]
}
config_file
=
${
params_arry
[1]
}
sh
$config_server
/show_info.sh
$project
BUILD
$desc
`
hostname
`
cd
$project_path
/
$project
setup_path_temp
=
`
find ./
-name
"setup.py"
`
python
${
setup_path_temp
}
install
#第四步 关联配置文件
rm
-rf
$config_file
ln
-s
$config_path
/python/
$project
.
*
$config_file
\ No newline at end of file
qa_shell_script/config_server/get_project_config.js
View file @
f75e953e
This diff is collapsed.
Click to expand it.
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