server-sdk/.gitlab-ci.yml
2019-11-05 17:44:27 +01:00

68 lines
1012 B
YAML

# for
stages:
- build
- test
- quality
# ########
# Build
##########
build: # name of task
stage: build # in what stage it will run ( 1. build then test etc )
tags: # Tags are used to choose correct gitlab-runner
- shell # spaceti-runner server has running runners and one has tag 'hw'
script: # run in bash
- mkdir -p build
- cd build
- qmake ../core-sdk.pro
- make -j4
cache:
paths:
- build/
# ########
# 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
- scripts/cppcheck.sh
codecoverage:
stage: test
tags:
- shell
script:
- scripts/codecoverage.sh
coverage: '/^\s+functions..:\s+(\d+\.\d+%).+$/'
doc:
stage: test
tags:
- shell
script:
- scripts/doc.sh