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
b79fa9fc
Commit
b79fa9fc
authored
Aug 10, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
743e8a84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
buildUi.sh
qa_shell_script/base_script/buildUi.sh
+17
-5
No files found.
qa_shell_script/base_script/buildUi.sh
View file @
b79fa9fc
...
@@ -16,12 +16,24 @@ sh $config_server/show_info.sh $project BUILD $desc `hostname`
...
@@ -16,12 +16,24 @@ sh $config_server/show_info.sh $project BUILD $desc `hostname`
# 第一步 将nginx项目的所有文件进行打包
# 第一步 将nginx项目的所有文件进行打包
cd
$project_path
/
$project
cd
$project_path
/
$project
if
[
"
$node_version
"
=
"node4"
]
;
then
package_check_file
=
`
find ./
-maxdepth
1
-name
"package.json"
`
if
[
-n
"
$package_check_file
"
]
;
then
item
=
`
diff
-qrs
$file1
$file2
`
if
[[
$item
=
~
"identical"
]]
;
then
echo
"本次package无变更"
else
echo
"本次package有变更,将要执行npm install"
if
[
"
$node_version
"
=
"node4"
]
;
then
echo
"----node-V4---
${
node4_path
}
/npm install"
echo
"----node-V4---
${
node4_path
}
/npm install"
${
node4_path
}
/npm
install
${
node4_path
}
/npm
install
else
else
npm
--registry
http://172.16.3.15:4873
install
npm
--registry
http://172.16.3.15:4873
install
fi
fi
fi
fi
yes
|
cp
package.json package_diff.json
bower_json
=
`
find ./
-maxdepth
1
-name
"bower.json"
`
bower_json
=
`
find ./
-maxdepth
1
-name
"bower.json"
`
if
[
-n
"
$bower_json
"
]
;
then
if
[
-n
"
$bower_json
"
]
;
then
...
...
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