Refactor CI pipeline by removing the build stage and adjusting test job dependencies

This commit is contained in:
Max Lübke 2024-12-20 09:03:55 +01:00
parent 60c4a15c9f
commit c36fe346b3

View File

@ -20,7 +20,6 @@ image: git.gfz-potsdam.de:5000/naaice/poet:ci
stages: # List of stages for jobs, and their order of execution
- release
- build
- test
variables:
@ -28,26 +27,11 @@ variables:
SOURCE_ARCHIVE_NAME: 'poet_${CI_COMMIT_TAG}_sources.tar.gz'
CHANGELOG_FILE: 'commit_changelog.md'
build-poet: # This job runs in the build stage, which runs first.
stage: build
test: # This job runs in the build stage, which runs first.
stage: test
script:
- mkdir -p build && cd build
- cmake -DPOET_ENABLE_TESTING=ON -DPOET_PREPROCESS_BENCHS=OFF ..
- make -j$(nproc)
cache:
key: build-$CI_COMMIT_BRANCH
paths:
- build
artifacts:
paths:
- build
test-poet:
stage: test
dependencies:
- build-poet
script:
- cd build
- cmake -DPOET_ENABLE_TESTING=ON -DPOET_PREPROCESS_BENCHS=OFF -DCMAKE_BUILD_TYPE=Release ..
- make -j$(nproc) check
pages: