colnod-connector/.gitlab-ci.yml
2019-11-07 16:55:55 +01:00

71 lines
1020 B
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
cache:
paths:
- build # this path will be cached for next stages
# ########
# Test
##########
test:
stage: test
tags:
- shell
script:
- cd build
- make check test
valgrind:
stage: test
tags:
- shell
script:
- cd build
- valgrind make check test
# Quality of code
cppcheck:
stage: test
tags:
- shell
# Probably needed to allow failure
#allow_failure: true
script: # run in bash
- server-sdk/scripts/cppcheck.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