mirror of
https://gitlab.com/spaceti-app/integrations/acs/colnod-connector.git
synced 2026-07-12 13:00:41 +02:00
78 lines
1.1 KiB
YAML
78 lines
1.1 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 test
|
|
|
|
# memory leak check for unittest
|
|
valgrind:
|
|
stage: test
|
|
tags:
|
|
- shell
|
|
script:
|
|
- cd build
|
|
- valgrind make check test
|
|
|
|
# Quality of code
|
|
cppcheck:
|
|
stage: test
|
|
tags:
|
|
- shell
|
|
#allow_failure: true # Probably needed to allow failure
|
|
script:
|
|
- server-sdk/scripts/cppcheck.sh
|
|
|
|
# Common checks ( Line endings )
|
|
lineendings:
|
|
stage: test
|
|
tags:
|
|
- shell
|
|
script:
|
|
- server-sdk/scripts/check.sh
|
|
|
|
codecoverage:
|
|
stage: test
|
|
tags:
|
|
- shell
|
|
script:
|
|
- server-sdk/scripts/codecoverage.sh
|
|
coverage: '/^\s+functions..:\s+(\d+\.\d+%).+$/'
|
|
|
|
doc:
|
|
stage: test
|
|
tags:
|
|
- shell
|
|
script:
|
|
- server-sdk/scripts/doc.sh clean # 'clean' better clean before generating documentation
|