Add astyle configuration for code formating
This commit is contained in:
parent
7b7fb82adc
commit
a5caed2ca9
|
@ -0,0 +1,17 @@
|
|||
# gr-satnogs astyle parameters
|
||||
--errors-to-stdout
|
||||
--lineend=linux
|
||||
--preserve-date
|
||||
--suffix=none
|
||||
--style=stroustrup
|
||||
--convert-tabs
|
||||
--indent=spaces=2
|
||||
--align-pointer=name
|
||||
--align-reference=name
|
||||
--pad-header
|
||||
--add-braces
|
||||
--unpad-paren
|
||||
--pad-oper
|
||||
--pad-comma
|
||||
--convert-tabs
|
||||
|
|
@ -1,10 +1,20 @@
|
|||
variables:
|
||||
GITLAB_CI_IMAGE_DEBIAN: 'debian:buster'
|
||||
stages:
|
||||
- style
|
||||
- test
|
||||
- build
|
||||
- deploy
|
||||
|
||||
style:
|
||||
stage: 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
|
||||
|
||||
test:
|
||||
stage: test
|
||||
before_script:
|
||||
|
|
Loading…
Reference in New Issue