IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 90c643a7 authored by Lukas Nellen's avatar Lukas Nellen :footprints:
Browse files

Merge branch 'prevent_build_artifacts' into 'master'

Prevent build artifacts

See merge request AirShowerPhysics/corsika!145
parents b78a8c62 19ac4571
No related branches found
No related tags found
No related merge requests found
...@@ -10,9 +10,7 @@ variables: ...@@ -10,9 +10,7 @@ variables:
# normal multi-step pipeline for each commit # normal multi-step pipeline for each commit
stages: stages:
- config - config
- build - build_test
- test
- release
- optional - optional
# job/stage to just prepare cmake # job/stage to just prepare cmake
...@@ -46,76 +44,50 @@ config-clang-8: ...@@ -46,76 +44,50 @@ config-clang-8:
- build - build
# normal pipeline for each commit # normal pipeline for each commit
build-u-18_04: build-test-u-18_04:
image: corsika/devel:u-18.04 image: corsika/devel:u-18.04
dependencies: dependencies:
- config-u-18_04 - config-u-18_04
stage: build stage: build_test
tags: tags:
- corsika - corsika
script: script:
- cd build - cd build
- cmake --build . -- -j4 - cmake --build . -- -j4
artifacts:
expire_in: 1 day
paths:
- build
# normal pipeline for each commit
build-clang-8:
image: corsika/devel:clang-8
dependencies:
- config-clang-8
stage: build
tags:
- corsika
script:
- cd build
- cmake --build . -- -j4
artifacts:
expire_in: 1 day
paths:
- build
test-u-18_04:
image: corsika/devel:u-18.04
dependencies:
- build-u-18_04
stage: test
tags:
- corsika
script:
- set -o pipefail - set -o pipefail
- cd build
- ctest -VV | gzip -v -9 > test.log.gz - ctest -VV | gzip -v -9 > test.log.gz
artifacts: artifacts:
expire_in: 3 months when: always
expire_in: 1 week
reports: reports:
junit: junit:
- build/test_outputs/junit*.xml - build/test_outputs/junit*.xml
paths: paths:
- build/test.log.gz - build/test.log.gz
test-clang-8: # normal pipeline for each commit
build-test-clang-8:
image: corsika/devel:clang-8 image: corsika/devel:clang-8
dependencies: dependencies:
- build-clang-8 - config-clang-8
stage: test stage: build_test
tags: tags:
- corsika - corsika
script: script:
- set -o pipefail
- cd build - cd build
- cmake --build . -- -j4
- set -o pipefail
- ctest -VV | gzip -v -9 > test.log.gz - ctest -VV | gzip -v -9 > test.log.gz
artifacts: artifacts:
expire_in: 3 months when: always
expire_in: 1 week
reports: reports:
junit: junit:
- build/test_outputs/junit*.xml - build/test_outputs/junit*.xml
paths: paths:
- build/test.log.gz - build/test.log.gz
# normal pipeline for each commit # optional release pipeline for each commit
release-u-18_04: release-u-18_04:
image: corsika/devel:u-18.04 image: corsika/devel:u-18.04
dependencies: dependencies:
...@@ -127,10 +99,19 @@ release-u-18_04: ...@@ -127,10 +99,19 @@ release-u-18_04:
- cd build - cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release - cmake .. -DCMAKE_BUILD_TYPE=Release
- cmake --build . -- -j4 - cmake --build . -- -j4
- ctest -j4 - set -o pipefail
- ctest -VV | gzip -v -9 > test.log.gz
artifacts:
when: always
expire_in: 1 week
reports:
junit:
- build/test_outputs/junit*.xml
paths:
- build/test.log.gz
when: manual when: manual
# normal pipeline for each commit # optional release pipeline for each commit
release-clang-8: release-clang-8:
image: corsika/devel:clang-8 image: corsika/devel:clang-8
dependencies: dependencies:
...@@ -142,7 +123,16 @@ release-clang-8: ...@@ -142,7 +123,16 @@ release-clang-8:
- cd build - cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release - cmake .. -DCMAKE_BUILD_TYPE=Release
- cmake --build . -- -j4 - cmake --build . -- -j4
- ctest -j4 - set -o pipefail
- ctest -VV | gzip -v -9 > test.log.gz
artifacts:
when: always
expire_in: 1 week
reports:
junit:
- build/test_outputs/junit*.xml
paths:
- build/test.log.gz
when: manual when: manual
# the coverage generation should either run when manually requested, OR for all changes on the master # the coverage generation should either run when manually requested, OR for all changes on the master
...@@ -182,7 +172,7 @@ coverage_master: # special job to run on master banch changes ...@@ -182,7 +172,7 @@ coverage_master: # special job to run on master banch changes
documentation: documentation:
image: corsika/devel:u-18.04 image: corsika/devel:u-18.04
dependencies: dependencies:
- build-u-18_04 - config-u-18_04
stage: optional stage: optional
tags: tags:
- corsika - corsika
...@@ -193,7 +183,7 @@ documentation: ...@@ -193,7 +183,7 @@ documentation:
- cp -r Documentation/Doxygen/html .public/ - cp -r Documentation/Doxygen/html .public/
- mv .public ../public - mv .public ../public
artifacts: artifacts:
expire_in: 3 months expire_in: 3 weeks
paths: paths:
- public - public
when: manual when: manual
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment