Verified Commit 95658fca authored by Adam Mercer's avatar Adam Mercer Committed by Adam Mercer
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
......@@ -328,6 +328,18 @@ lint:markdown:
- find . -name "*.md" -exec markdownlint {} \;
stage: lint
image: igwn/base:el8
needs: []
- dnf -y install astyle git
# 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 ------------------------------
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment