updated gitlab-ci

This commit is contained in:
Filip Bucek 2019-11-05 10:42:22 +01:00
parent f147901026
commit bdd08ad9b0

View File

@ -10,7 +10,7 @@ stages:
build: # name of task build: # name of task
stage: build # in what stage it will run ( 1. build then test etc ) stage: build # in what stage it will run ( 1. build then test etc )
tags: # Tags are used to choose correct gitlab-runner tags: # Tags are used to choose correct gitlab-runner
- linux # spaceti-runner server has running runners and one has tag 'hw' - shell # spaceti-runner server has running runners and one has tag 'hw'
script: # run in bash script: # run in bash
- mkdir -p build - mkdir -p build
- cd build - cd build
@ -27,7 +27,7 @@ cache:
test: # name of task test: # name of task
stage: test # in what stage it will run ( 1. build then test etc ) stage: test # in what stage it will run ( 1. build then test etc )
tags: # Tags are used to choose correct gitlab-runner tags: # Tags are used to choose correct gitlab-runner
- linux # spaceti-runner server has running runners and one has tag 'hw' - shell # spaceti-runner server has running runners and one has tag 'hw'
script: # run in bash script: # run in bash
- cd build - cd build
- make check test - make check test
@ -35,7 +35,7 @@ test: # name of task
valgrind: # name of task valgrind: # name of task
stage: test # in what stage it will run ( 1. build then test etc ) stage: test # in what stage it will run ( 1. build then test etc )
tags: # Tags are used to choose correct gitlab-runner tags: # Tags are used to choose correct gitlab-runner
- linux # spaceti-runner server has running runners and one has tag 'hw' - shell # spaceti-runner server has running runners and one has tag 'hw'
script: # run in bash script: # run in bash
- cd build - cd build
- valgrind make check test - valgrind make check test
@ -45,7 +45,7 @@ valgrind: # name of task
cppcheck: cppcheck:
stage: test # in what stage it will run ( 1. build then test etc ) stage: test # in what stage it will run ( 1. build then test etc )
tags: # Tags are used to choose correct gitlab-runner tags: # Tags are used to choose correct gitlab-runner
- linux # spaceti-runner server has running runners and one has tag 'hw' - shell # spaceti-runner server has running runners and one has tag 'hw'
allow_failure: true allow_failure: true
script: # run in bash script: # run in bash
- cppcheck src --suppress=unusedFunction --enable=all -i build --error-exitcode=1 - cppcheck src --suppress=unusedFunction --enable=all -i build --error-exitcode=1