updating ci

This commit is contained in:
Filip Bucek 2019-11-08 18:21:59 +01:00
parent 22080cb83b
commit 7f903b601b

View File

@ -6,23 +6,29 @@ stages:
# To clone also submodules # To clone also submodules
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
PRO_FILE: ../colnod-connector.pro
SCRIPT_PATH: server-sdk/scripts
cache:
paths:
- build/
########## ###########
# Build # Build
########## ##########
build: build:
stage: build stage: build
tags: tags:
- shell - shell
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
script: script:
- ls server-sdk
- mkdir -p build - mkdir -p build
- cd build - cd build
- qmake ../colnod-connector.pro - qmake $PRO_FILE
- make -j4 - make -j4
artifacts:
paths:
- build/
########## ##########
# Test # Test
@ -32,7 +38,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
@ -41,7 +49,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
@ -51,7 +61,7 @@ cppcheck:
- shell - shell
#allow_failure: true # Probably needed to allow failure #allow_failure: true # Probably needed to allow failure
script: script:
- server-sdk/scripts/cppcheck.sh - $SCRIPT_PATH/cppcheck.sh
dependencies: [] dependencies: []
# Common checks ( Line endings ) # Common checks ( Line endings )