Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gitlab-ci-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
PublicSource
gitlab-ci-template
Commits
1fb2883a
Commit
1fb2883a
authored
May 06, 2020
by
吴军
⛏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改比较commit的顺序
parent
93fd130a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
check-vue.sh
check-vue.sh
+1
-1
No files found.
check-vue.sh
View file @
1fb2883a
...
...
@@ -19,7 +19,7 @@ echo -e "\n${GREEN_BOLD}本次Commit号: ${COLOR_END}" $CI_COMMIT_SHA
echo
-e
"
${
GREEN_BOLD
}
上次Commit号:
${
COLOR_END
}
"
$CI_COMMIT_BEFORE_SHA
count
=
`
git diff
--name-status
$CI_COMMIT_
SHA
$CI_COMMIT_BEFORE
_SHA
|
grep
'\.js$'
| egrep
-v
'^D'
|
awk
'{print $2}'
`
count
=
`
git diff
--name-status
$CI_COMMIT_
BEFORE_SHA
$CI_COMMIT
_SHA
|
grep
'\.js$'
| egrep
-v
'^D'
|
awk
'{print $2}'
`
if
[[
-n
"
$count
"
]]
;
then
npm
install
@vue/babel-preset-app
--registry
https://hub.zmcms.cn/repository/npm-group/
echo
-e
"
\n
${
PURPLE
}
================== 开始检测JS文件==================
${
COLOR_END
}
"
...
...
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