# for stages: - build - test # 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: - mkdir -p build - cd build - qmake $PRO_FILE - make -j4 ########## # Test ########## test: stage: test tags: - shell script: - mkdir -p build - cd build - qmake $PRO_FILE - make check # memory leak check for unittest valgrind: stage: test tags: - shell script: - mkdir -p build - cd build - qmake $PRO_FILE - valgrind make check # Quality of code cppcheck: stage: test tags: - shell #allow_failure: true # Probably needed to allow failure script: - $SCRIPT_PATH/cppcheck.sh dependencies: [] # Common checks ( Line endings ) lineendings: stage: test tags: - shell script: - $SCRIPT_PATH/check.sh dependencies: [] codecoverage: stage: test tags: - shell script: - $SCRIPT_PATH/codecoverage.sh coverage: '/^\s+functions..:\s+(\d+\.\d+%).+$/' dependencies: [] doc: stage: test tags: - shell script: - $SCRIPT_PATH/doc.sh clean # 'clean' better clean before generating documentation dependencies: []