mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 04:48:23 +01:00
ci: Only build and test on merge request
This commit is contained in:
parent
062f7a2151
commit
be2159227e
@ -34,6 +34,8 @@ build-poet: # This job runs in the build stage, which runs first.
|
|||||||
- mkdir build && cd build
|
- mkdir build && cd build
|
||||||
- cmake ..
|
- cmake ..
|
||||||
- make -j$(nproc)
|
- make -j$(nproc)
|
||||||
|
rules:
|
||||||
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||||
|
|
||||||
test-poet:
|
test-poet:
|
||||||
stage: test
|
stage: test
|
||||||
@ -41,6 +43,8 @@ test-poet:
|
|||||||
- mkdir build_test && cd build_test
|
- mkdir build_test && cd build_test
|
||||||
- cmake -DPOET_ENABLE_TESTING=ON ..
|
- cmake -DPOET_ENABLE_TESTING=ON ..
|
||||||
- make -j$(nproc) check
|
- make -j$(nproc) check
|
||||||
|
rules:
|
||||||
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||||
|
|
||||||
archive-sources: # This job runs in the build stage, which runs first.
|
archive-sources: # This job runs in the build stage, which runs first.
|
||||||
image: python:3
|
image: python:3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user