# for stages: - build - test # To clone also submodules variables: GIT_SUBMODULE_STRATEGY: recursive # ######## # Build ########## build: stage: build tags: - shell script: - mkdir -p build - cd build - qmake ../colnod-connector.pro - make -j4 cache: paths: - build # this path will be cached for next stages # ######## # Test ########## test: stage: test tags: - shell script: - cd build - make check test # memory leak check for unittest valgrind: stage: test tags: - shell script: - cd build - valgrind make check test # Quality of code cppcheck: stage: test tags: - shell #allow_failure: true # Probably needed to allow failure script: - scripts/cppcheck.sh # Common checks ( Line endings ) lineendings: stage: test tags: - shell script: - scripts/check.sh codecoverage: stage: test tags: - shell script: - scripts/codecoverage.sh coverage: '/^\s+functions..:\s+(\d+\.\d+%).+$/' doc: stage: test tags: - shell script: - scripts/doc.sh clean # 'clean' better clean before generating documentation