forked from ondra/colnod-connector
updating ci
This commit is contained in:
parent
22080cb83b
commit
7f903b601b
@ -6,23 +6,29 @@ stages:
|
||||
# To clone also submodules
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
PRO_FILE: ../colnod-connector.pro
|
||||
SCRIPT_PATH: server-sdk/scripts
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- build/
|
||||
|
||||
##########
|
||||
###########
|
||||
# Build
|
||||
##########
|
||||
build:
|
||||
stage: build
|
||||
tags:
|
||||
- shell
|
||||
before_script:
|
||||
- git submodule sync --recursive
|
||||
- git submodule update --init --recursive
|
||||
script:
|
||||
- ls server-sdk
|
||||
- mkdir -p build
|
||||
- cd build
|
||||
- qmake ../colnod-connector.pro
|
||||
- qmake $PRO_FILE
|
||||
- make -j4
|
||||
artifacts:
|
||||
paths:
|
||||
- build/
|
||||
|
||||
##########
|
||||
# Test
|
||||
@ -32,7 +38,9 @@ test:
|
||||
tags:
|
||||
- shell
|
||||
script:
|
||||
- mkdir -p build
|
||||
- cd build
|
||||
- qmake $PRO_FILE
|
||||
- make check
|
||||
|
||||
# memory leak check for unittest
|
||||
@ -41,7 +49,9 @@ valgrind:
|
||||
tags:
|
||||
- shell
|
||||
script:
|
||||
- mkdir -p build
|
||||
- cd build
|
||||
- qmake $PRO_FILE
|
||||
- valgrind make check
|
||||
|
||||
# Quality of code
|
||||
@ -51,7 +61,7 @@ cppcheck:
|
||||
- shell
|
||||
#allow_failure: true # Probably needed to allow failure
|
||||
script:
|
||||
- server-sdk/scripts/cppcheck.sh
|
||||
- $SCRIPT_PATH/cppcheck.sh
|
||||
dependencies: []
|
||||
|
||||
# Common checks ( Line endings )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user