forked from ondra/server-sdk
updating ci
This commit is contained in:
parent
33950c96fe
commit
1d947e931b
@ -3,6 +3,15 @@ stages:
|
|||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
|
|
||||||
|
# To clone also submodules
|
||||||
|
variables:
|
||||||
|
PRO_FILE: ../server-sdk.pro
|
||||||
|
SCRIPT_PATH: scripts
|
||||||
|
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- build/
|
||||||
|
|
||||||
##########
|
##########
|
||||||
# Build
|
# Build
|
||||||
##########
|
##########
|
||||||
@ -11,14 +20,11 @@ build: # name of task
|
|||||||
tags: # Tags are used to choose correct gitlab-runner
|
tags: # Tags are used to choose correct gitlab-runner
|
||||||
- shell # spaceti-runner server has running runners and one has tag 'hw'
|
- shell # spaceti-runner server has running runners and one has tag 'hw'
|
||||||
script: # run in bash
|
script: # run in bash
|
||||||
- if [ -d build ];then rm -rf build; fi
|
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
- cd build
|
- cd build
|
||||||
- qmake ../server-sdk.pro
|
- qmake $PRO_FILE
|
||||||
- make -j4
|
- make -j4
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build/
|
|
||||||
|
|
||||||
##########
|
##########
|
||||||
# Test
|
# Test
|
||||||
@ -28,7 +34,9 @@ test:
|
|||||||
tags:
|
tags:
|
||||||
- shell
|
- shell
|
||||||
script:
|
script:
|
||||||
|
- mkdir -p build
|
||||||
- cd build
|
- cd build
|
||||||
|
- qmake $PRO_FILE
|
||||||
- make check
|
- make check
|
||||||
|
|
||||||
# memory leak check for unittest
|
# memory leak check for unittest
|
||||||
@ -37,7 +45,9 @@ valgrind:
|
|||||||
tags:
|
tags:
|
||||||
- shell
|
- shell
|
||||||
script:
|
script:
|
||||||
|
- mkdir -p build
|
||||||
- cd build
|
- cd build
|
||||||
|
- qmake $PRO_FILE
|
||||||
- valgrind make check
|
- valgrind make check
|
||||||
|
|
||||||
# Quality of code
|
# Quality of code
|
||||||
@ -47,7 +57,7 @@ cppcheck:
|
|||||||
- shell
|
- shell
|
||||||
#allow_failure: true # Probably needed to allow failure
|
#allow_failure: true # Probably needed to allow failure
|
||||||
script:
|
script:
|
||||||
- scripts/cppcheck.sh
|
- $SCRIPT_PATH/cppcheck.sh
|
||||||
dependencies: []
|
dependencies: []
|
||||||
|
|
||||||
# Common checks ( Line endings )
|
# Common checks ( Line endings )
|
||||||
@ -56,7 +66,7 @@ lineendings:
|
|||||||
tags:
|
tags:
|
||||||
- shell
|
- shell
|
||||||
script:
|
script:
|
||||||
- scripts/check.sh
|
- server-sdk/scripts/check.sh
|
||||||
dependencies: []
|
dependencies: []
|
||||||
|
|
||||||
codecoverage:
|
codecoverage:
|
||||||
@ -64,7 +74,7 @@ codecoverage:
|
|||||||
tags:
|
tags:
|
||||||
- shell
|
- shell
|
||||||
script:
|
script:
|
||||||
- scripts/codecoverage.sh
|
- server-sdk/scripts/codecoverage.sh
|
||||||
coverage: '/^\s+functions..:\s+(\d+\.\d+%).+$/'
|
coverage: '/^\s+functions..:\s+(\d+\.\d+%).+$/'
|
||||||
dependencies: []
|
dependencies: []
|
||||||
|
|
||||||
@ -73,5 +83,5 @@ doc:
|
|||||||
tags:
|
tags:
|
||||||
- shell
|
- shell
|
||||||
script:
|
script:
|
||||||
- scripts/doc.sh clean # 'clean' better clean before generating documentation
|
- server-sdk/scripts/doc.sh clean # 'clean' better clean before generating documentation
|
||||||
dependencies: []
|
dependencies: []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user