From 6f2159c1e3c3240a9ecc571ec6c93f67adc1dd0a Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Fri, 20 Dec 2019 16:52:04 +0200 Subject: [PATCH] gitlab-ci: Drop '&&'; jobs fail on all script commands Signed-off-by: Vasilis Tsiligiannis --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 87aa2c7..dbd9f6a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,8 @@ style: image: ${GITLAB_CI_IMAGE_DEBIAN} stage: style before_script: - - apt-get update -qq && apt-get install -y -qq astyle git + - apt-get update -qq + - apt-get install -qq -y astyle git 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