gitlab-ci: Use single liner for style checking
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
This commit is contained in:
parent
4bdd9148da
commit
de60d51969
|
@ -12,9 +12,7 @@ style:
|
|||
- apt-get update -qq
|
||||
- apt-get install -qq -y astyle
|
||||
script:
|
||||
- if (test $(astyle --dry-run --options=.astylerc --formatted lib/*.cc | wc -l) -eq 0); then (exit 0); else (exit 1); fi
|
||||
- if (test $(astyle --dry-run --options=.astylerc --formatted lib/*.h | wc -l) -eq 0); then (exit 0); else (exit 1); fi
|
||||
- if (test $(astyle --dry-run --options=.astylerc --formatted include/satnogs/*.h | wc -l) -eq 0); then (exit 0); else (exit 1); fi
|
||||
- 'astyle --dry-run --options=.astylerc --formatted lib/*.cc lib/*.h include/satnogs/*.h | sed ''s/^Formatted/ERROR: Unformatted/;T;q1'''
|
||||
test:
|
||||
image: ${GITLAB_CI_IMAGE_DEBIAN}
|
||||
stage: test
|
||||
|
|
Loading…
Reference in New Issue