IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 92510ae4 authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

exmaples need now cmake in CI

parent f005606e
No related branches found
No related tags found
No related merge requests found
...@@ -279,56 +279,6 @@ build_test-clang-8: ...@@ -279,56 +279,6 @@ build_test-clang-8:
####### EXAMPLE (only manual) ##############
##########################################################
# generic example template job
# normal pipeline for each commit
.example:
stage: example
tags:
- corsika
script:
- cd build
- set -o pipefail
- make -j4 run_examples | gzip -v -9 > examples.log.gz
rules:
- if: $CI_MERGE_REQUEST_ID
when: manual
- if: $CI_COMMIT_TAG
when: manual
- if: $CI_COMMIT_BRANCH
when: manual
allow_failure: true
artifacts:
when: always
expire_in: 3 days
paths:
- ${CI_PROJECT_DIR}/build/examples.log.gz
cache:
paths:
- ${CI_PROJECT_DIR}/build/
untracked: true
policy: pull
# example for gcc
example-u-18_04:
extends: .example
image: corsika/devel:u-18.04
dependencies:
- build-u-18_04
cache:
key: "${CI_COMMIT_REF_SLUG}-gcc"
# example for clang
example-clang-8:
extends: .example
image: corsika/devel:clang-8
dependencies:
- build-clang-8
cache:
key: "${CI_COMMIT_REF_SLUG}-clang"
####### BUILD-TEST-EXAMPLE (only non-Draft) ############## ####### BUILD-TEST-EXAMPLE (only non-Draft) ##############
...@@ -346,7 +296,9 @@ example-clang-8: ...@@ -346,7 +296,9 @@ example-clang-8:
- set -o pipefail - set -o pipefail
- ctest -j4 - ctest -j4
- make install - make install
- cd install/share/corsika/examples - mkdir -p build_examples
- cd build_examples
- cmake ../install/share/corsika/examples
- make -j4 - make -j4
- make -j4 run_examples | gzip -v -9 > examples.log.gz - make -j4 run_examples | gzip -v -9 > examples.log.gz
rules: rules:
...@@ -365,7 +317,7 @@ example-clang-8: ...@@ -365,7 +317,7 @@ example-clang-8:
junit: junit:
- ${CI_PROJECT_DIR}/build/test_outputs/junit*.xml - ${CI_PROJECT_DIR}/build/test_outputs/junit*.xml
paths: paths:
- ${CI_PROJECT_DIR}/build/install/share/corsika/examples/examples.log.gz - ${CI_PROJECT_DIR}/build/build_examples/examples.log.gz
cache: cache:
paths: paths:
- ${CI_PROJECT_DIR}/build/ - ${CI_PROJECT_DIR}/build/
...@@ -458,7 +410,9 @@ install-clang-8: ...@@ -458,7 +410,9 @@ install-clang-8:
- set -o pipefail - set -o pipefail
- ctest -j4 - ctest -j4
- make install - make install
- cd install/share/corsika/examples - mkdir -p build_examples
- cd build_examples
- cmake ../install/share/corsika/examples
- make -j4 - make -j4
- make -j4 run_examples | gzip -v -9 > examples.log.gz - make -j4 run_examples | gzip -v -9 > examples.log.gz
rules: rules:
...@@ -484,7 +438,7 @@ install-clang-8: ...@@ -484,7 +438,7 @@ install-clang-8:
junit: junit:
- ${CI_PROJECT_DIR}/build/test_outputs/junit*.xml - ${CI_PROJECT_DIR}/build/test_outputs/junit*.xml
paths: paths:
- ${CI_PROJECT_DIR}/build/install/share/corsika/examples/examples.log.gz - ${CI_PROJECT_DIR}/build/build_examples/examples.log.gz
# release for gcc # release for gcc
release-full-u-18_04: release-full-u-18_04:
......
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