Fix Debian issue with astyle options

This commit is contained in:
Manolis Surligas 2019-09-12 16:32:31 +03:00
parent e09c180f84
commit 90eb400763
1 changed files with 3 additions and 3 deletions

View File

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