gitlab-ci: Drop '&&'; jobs fail on all script commands

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
This commit is contained in:
Vasilis Tsiligiannis 2019-12-20 16:52:04 +02:00
parent fa8780288f
commit 6f2159c1e3
1 changed files with 2 additions and 1 deletions

View File

@ -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