Skip to content

Commit

Permalink
CI: enable pipelines for merge requests
Browse files Browse the repository at this point in the history
For now, pipelines are enabled only for the devel branch.
To check a code proposed via merge requests the pipelines have to be
enabled for merge requests branches too.

Issue: saebyn#16.
Signed-off-by: Gluttton <[email protected]>
  • Loading branch information
Gluttton committed Aug 29, 2021
1 parent e77a5cb commit bebe6a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ test_job:
stage: test
image: registry.gitlab.com/gluttton/munkres-cpp
before_script:
- git checkout devel
- BUILD_DIR=`pwd`/build
- mkdir -p ${BUILD_DIR}
- cd ${BUILD_DIR}
Expand All @@ -22,13 +21,13 @@ test_job:
- gcovr --exclude '../tests' --exclude 'tests/googletest' -r ..
only:
- devel
- merge_requests


examples_job:
stage: examples
image: registry.gitlab.com/gluttton/munkres-cpp
before_script:
- git checkout devel
- BUILD_DIR=`pwd`/build
- mkdir -p ${BUILD_DIR}
- cd ${BUILD_DIR}
Expand All @@ -37,13 +36,13 @@ examples_job:
- make examples
only:
- devel
- merge_requests


benchmarks_job:
stage: benchmarks
image: registry.gitlab.com/gluttton/munkres-cpp
before_script:
- git checkout devel
- BUILD_DIR=`pwd`/build
- mkdir -p ${BUILD_DIR}
- cd ${BUILD_DIR}
Expand All @@ -64,13 +63,13 @@ benchmarks_job:
- make benchmarks
only:
- devel
- merge_requests


cppcheck_job:
stage: cppcheck
image: registry.gitlab.com/gluttton/munkres-cpp
before_script:
- git checkout devel
- BUILD_DIR=`pwd`/build
- mkdir -p ${BUILD_DIR}
- cd ${BUILD_DIR}
Expand All @@ -80,4 +79,5 @@ cppcheck_job:
- cat cppcheck.report
only:
- devel
- merge_requests

0 comments on commit bebe6a2

Please sign in to comment.