mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-15 20:38:23 +01:00
Refactor CI pipeline by removing the build stage and adjusting test job dependencies
This commit is contained in:
parent
60c4a15c9f
commit
c36fe346b3
@ -20,7 +20,6 @@ image: git.gfz-potsdam.de:5000/naaice/poet:ci
|
|||||||
|
|
||||||
stages: # List of stages for jobs, and their order of execution
|
stages: # List of stages for jobs, and their order of execution
|
||||||
- release
|
- release
|
||||||
- build
|
|
||||||
- test
|
- test
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
@ -28,26 +27,11 @@ variables:
|
|||||||
SOURCE_ARCHIVE_NAME: 'poet_${CI_COMMIT_TAG}_sources.tar.gz'
|
SOURCE_ARCHIVE_NAME: 'poet_${CI_COMMIT_TAG}_sources.tar.gz'
|
||||||
CHANGELOG_FILE: 'commit_changelog.md'
|
CHANGELOG_FILE: 'commit_changelog.md'
|
||||||
|
|
||||||
build-poet: # This job runs in the build stage, which runs first.
|
test: # This job runs in the build stage, which runs first.
|
||||||
stage: build
|
stage: test
|
||||||
script:
|
script:
|
||||||
- mkdir -p build && cd build
|
- mkdir -p build && cd build
|
||||||
- cmake -DPOET_ENABLE_TESTING=ON -DPOET_PREPROCESS_BENCHS=OFF ..
|
- cmake -DPOET_ENABLE_TESTING=ON -DPOET_PREPROCESS_BENCHS=OFF -DCMAKE_BUILD_TYPE=Release ..
|
||||||
- make -j$(nproc)
|
|
||||||
cache:
|
|
||||||
key: build-$CI_COMMIT_BRANCH
|
|
||||||
paths:
|
|
||||||
- build
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build
|
|
||||||
|
|
||||||
test-poet:
|
|
||||||
stage: test
|
|
||||||
dependencies:
|
|
||||||
- build-poet
|
|
||||||
script:
|
|
||||||
- cd build
|
|
||||||
- make -j$(nproc) check
|
- make -j$(nproc) check
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user