# for stages: - build - test - quality # ######## # Build ########## build: # name of task stage: build # in what stage it will run ( 1. build then test etc ) tags: # Tags are used to choose correct gitlab-runner - shell # spaceti-runner server has running runners and one has tag 'hw' script: # run in bash - mkdir -p build - cd build - qmake ../core-sdk.pro - make -j4 cache: paths: - build/ # ######## # Test ########## test: stage: test tags: - shell script: - cd build - make check test valgrind: stage: test tags: - shell script: - cd build - valgrind make check test # Quality of code cppcheck: stage: test tags: - shell # Probably needed to allow failure #allow_failure: true script: # run in bash - scripts/cppcheck.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