diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 822f8fd..efc2bd7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,9 +11,9 @@ style: before_script: - apt-get update -qq && apt-get install -y -qq astyle git script: - - test $(astyle --dry-run --project --formatted lib/*.cc | wc -l) -ne 0 && exit 1 - - test $(astyle --dry-run --project --formatted lib/*.h | wc -l) -ne 0 && exit 1 - - test $(astyle --dry-run --project --formatted include/satnogs/*.h | wc -l) -ne 0 && exit 1 + - 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 test: stage: test