mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-15 12:28:22 +01:00
Refactor CI pipeline by removing the build stage and adjusting test job dependencies
This commit is contained in:
parent
426429f8a9
commit
101f00f452
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user