mirror of
https://gitlab.com/spaceti-app/integrations/common/server-sdk.git
synced 2026-07-12 14:10:43 +02:00
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
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 -j1
|
|
cache:
|
|
paths:
|
|
- build/
|
|
|
|
|
|
# ########
|
|
# Test
|
|
##########
|
|
test: # name of task
|
|
stage: test # 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
|
|
- cd build
|
|
- make check test
|
|
|
|
valgrind: # name of task
|
|
stage: test # 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
|
|
- cd build
|
|
- valgrind make check test
|
|
|
|
|
|
# Quality of code
|
|
cppcheck:
|
|
stage: test # 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'
|
|
allow_failure: true
|
|
script: # run in bash
|
|
- cppcheck src --suppress=unusedFunction --enable=all -i build --error-exitcode=1
|