From de60d519693baa3af05d9554c9cf91eab9b423e5 Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Fri, 20 Dec 2019 17:30:40 +0200 Subject: [PATCH] gitlab-ci: Use single liner for style checking Signed-off-by: Vasilis Tsiligiannis --- .gitlab-ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a9454c1..00360a0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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