Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libmtime
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
icon-libraries
libmtime
Commits
fda71213
Commit
fda71213
authored
1 month ago
by
Sergey Kosukhin
Browse files
Options
Downloads
Patches
Plain Diff
ci: handle problems with patch generation
parent
338c2870
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!82
CI: generate style artifact
Pipeline
#97301
passed
1 month ago
Stage: test
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-4
8 additions, 4 deletions
.gitlab-ci.yml
with
8 additions
and
4 deletions
.gitlab-ci.yml
+
8
−
4
View file @
fda71213
...
...
@@ -85,12 +85,16 @@ Check style:
-
|
# pre-commit run --all-files
pre-commit run --color=always --all-files || {
git diff --ignore-submodules --patch-with-raw > "${STYLE_PATCH}"
test -s "${STYLE_PATCH}" && {
printf "${RED}At least some of the issues can be resolved with the patch (see artifacts):
git diff --ignore-submodules --patch-with-raw > "${STYLE_PATCH}"
&& {
test -s "${STYLE_PATCH}" && {
printf "${RED}At least some of the issues can be resolved with the patch (see artifacts):
${CI_JOB_URL}/artifacts/raw/${STYLE_PATCH}.\n${DEFAULT}"
} || {
printf "${RED}The issues cannot be resolved with a patch.\n${DEFAULT}"
rm -f "${STYLE_PATCH}"
}
} || {
printf "${RED}
The issues cannot be resolved with
a patch.\n${DEFAULT}"
printf "${RED}
Failed to generate
a patch
file
.\n${DEFAULT}"
rm -f "${STYLE_PATCH}"
}
printf "${RED}You can reproduce this check locally with \`pre-commit run --all-files\`.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment