Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mysql-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
mysql-formula
Commits
d08b960d
Unverified
Commit
d08b960d
authored
4 years ago
by
Imran Iqbal
Browse files
Options
Downloads
Patches
Plain Diff
ci(gitlab-ci): add `rubocop` linter (with `allow_failure`) [skip ci]
* Automated using
https://github.com/myii/ssf-formula/pull/277
parent
b2bd9db3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+14
-0
14 additions, 0 deletions
.gitlab-ci.yml
with
14 additions
and
0 deletions
.gitlab-ci.yml
+
14
−
0
View file @
d08b960d
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
image_precommit
:
&image_precommit
image_precommit
:
&image_precommit
name
:
'
myii/ssf-pre-commit:2.9.2'
name
:
'
myii/ssf-pre-commit:2.9.2'
entrypoint
:
[
'
/bin/bash'
,
'
-c'
]
entrypoint
:
[
'
/bin/bash'
,
'
-c'
]
image_rubocop
:
&image_rubocop
'
pipelinecomponents/rubocop:latest'
image_semantic-release
:
&image_semanticrelease
'
myii/ssf-semantic-release:15.14'
image_semantic-release
:
&image_semanticrelease
'
myii/ssf-semantic-release:15.14'
# `services`
# `services`
services_docker_dind
:
&services_docker_dind
services_docker_dind
:
&services_docker_dind
...
@@ -84,6 +85,19 @@ pre-commit:
...
@@ -84,6 +85,19 @@ pre-commit:
script
:
script
:
-
'
pre-commit
run
--all-files
--color
always
--verbose'
-
'
pre-commit
run
--all-files
--color
always
--verbose'
# Use a separate job for `rubocop` other than the one potentially run by `pre-commit`
# - The `pre-commit` check will only be available for formulas that pass the default
# `rubocop` check -- and must continue to do so
# - This job is allowed to fail, so can be used for all formulas
# - Furthermore, this job uses all of the latest `rubocop` features & cops,
# which will help when upgrading the `rubocop` linter used in `pre-commit`
rubocop
:
allow_failure
:
true
stage
:
*stage_lint
image
:
*image_rubocop
script
:
-
'
rubocop
-d
-P
-S
--enable-pending-cops'
###############################################################################
###############################################################################
# Define `test` template
# Define `test` template
###############################################################################
###############################################################################
...
...
This diff is collapsed.
Click to expand it.
Jan Philipp Timme
@timmej
mentioned in commit
d8c9f23b
·
3 years ago
mentioned in commit
d8c9f23b
mentioned in commit d8c9f23b661b9d1e76032e3f6e8e1a3bf4d64195
Toggle commit list
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