From 90eb400763e2df2cbda83bcff9b875477cac2de4 Mon Sep 17 00:00:00 2001 From: Manolis Surligas Date: Thu, 12 Sep 2019 16:32:31 +0300 Subject: [PATCH] Fix Debian issue with astyle options --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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