Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Adam Mercer
lalsuite
Commits
95658fca
Verified
Commit
95658fca
authored
Apr 15, 2020
by
Adam Mercer
Committed by
Adam Mercer
Apr 15, 2020
Browse files
add astyle lint CI job
ensure git is installed fix git update-index call and exit with error wip: upatw
parent
13798cc0
Pipeline
#119217
failed with stages
in 118 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
95658fca
...
...
@@ -328,6 +328,18 @@ lint:markdown:
script
:
-
find . -name "*.md" -exec markdownlint {} \;
lint:astyle:
stage
:
lint
image
:
igwn/base:el8
needs
:
[]
before_script
:
-
dnf -y install astyle git
script
:
# format source code
-
astyle --project --recursive "*.c" "*.h"
# did astyle make any changes?
-
if ! git diff-index --quiet --exit-code HEAD; then echo "Formatting issues found, please format code correctly"; exit 1; fi
# -- documentation ------------------------------
documentation
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment