colnod-connector/.gitlab-ci.yml
2019-11-08 17:58:01 +01:00

82 lines
1.2 KiB
YAML

# for
stages:
- build
- test
# To clone also submodules
variables:
GIT_SUBMODULE_STRATEGY: recursive
##########
# Build
##########
build:
stage: build
tags:
- shell
script:
- mkdir -p build
- cd build
- qmake ../colnod-connector.pro
- make -j4
artifacts:
paths:
- build/
##########
# Test
##########
test:
stage: test
tags:
- shell
script:
- cd build
- make check
# memory leak check for unittest
valgrind:
stage: test
tags:
- shell
script:
- cd build
- valgrind make check
# Quality of code
cppcheck:
stage: test
tags:
- shell
#allow_failure: true # Probably needed to allow failure
script:
- server-sdk/scripts/cppcheck.sh
dependencies: []
# Common checks ( Line endings )
lineendings:
stage: test
tags:
- shell
script:
- server-sdk/scripts/check.sh
dependencies: []
codecoverage:
stage: test
tags:
- shell
script:
- server-sdk/scripts/codecoverage.sh
coverage: '/^\s+functions..:\s+(\d+\.\d+%).+$/'
dependencies: []
doc:
stage: test
tags:
- shell
script:
- server-sdk/scripts/doc.sh clean # 'clean' better clean before generating documentation
dependencies: []