IAP GITLAB

Skip to content
Snippets Groups Projects
Commit d2fcf1dc authored by ralfulrich's avatar ralfulrich
Browse files

ci file

parent 8dc6d688
No related branches found
No related tags found
1 merge request!280Refactory 2020
...@@ -15,6 +15,7 @@ variables: ...@@ -15,6 +15,7 @@ variables:
# _alternatively_ corsika-data can be downloaded as submodule: # _alternatively_ corsika-data can be downloaded as submodule:
GIT_SUBMODULE_STRATEGY: normal # none: we get the submodules in before_script, GIT_SUBMODULE_STRATEGY: normal # none: we get the submodules in before_script,
# normal: get submodules automatically # normal: get submodules automatically
CONAN_USER_HOME: "$CI_BUILDS_DIR"
# #
...@@ -108,8 +109,9 @@ check-clang-format: ...@@ -108,8 +109,9 @@ check-clang-format:
cache: cache:
paths: paths:
- ${CI_PROJECT_DIR}/build/ - ${CI_PROJECT_DIR}/build/
- ${CONAN_USER_HOME}/.conan/
untracked: true untracked: true
policy: pull-push policy: pull-push
# config for gcc # config for gcc
config-u-18_04: config-u-18_04:
...@@ -137,6 +139,9 @@ config-clang-8: ...@@ -137,6 +139,9 @@ config-clang-8:
stage: build stage: build
tags: tags:
- corsika - corsika
before_script:
- apt-get update && apt-get install -y -qq python3-pip
- pip3 install conan
script: script:
- cd build - cd build
- cmake --build . -- -j4 - cmake --build . -- -j4
...@@ -151,6 +156,7 @@ config-clang-8: ...@@ -151,6 +156,7 @@ config-clang-8:
cache: cache:
paths: paths:
- ${CI_PROJECT_DIR}/build/ - ${CI_PROJECT_DIR}/build/
- ${CONAN_USER_HOME}/.conan/
untracked: true untracked: true
policy: pull-push policy: pull-push
...@@ -184,6 +190,9 @@ build-clang-8: ...@@ -184,6 +190,9 @@ build-clang-8:
stage: test stage: test
tags: tags:
- corsika - corsika
before_script:
- apt-get update && apt-get install -y -qq python3-pip
- pip3 install conan
script: script:
- cd build - cd build
- set -o pipefail - set -o pipefail
...@@ -205,6 +214,7 @@ build-clang-8: ...@@ -205,6 +214,7 @@ build-clang-8:
cache: cache:
paths: paths:
- ${CI_PROJECT_DIR}/build/ - ${CI_PROJECT_DIR}/build/
- ${CONAN_USER_HOME}/.conan/
untracked: true untracked: true
policy: pull-push policy: pull-push
...@@ -238,6 +248,9 @@ test-clang-8: ...@@ -238,6 +248,9 @@ test-clang-8:
stage: build_test stage: build_test
tags: tags:
- corsika - corsika
before_script:
- apt-get update && apt-get install -y -qq python3-pip
- pip3 install conan
script: script:
- cd build - cd build
- cmake --build . -- -j4 - cmake --build . -- -j4
...@@ -259,6 +272,7 @@ test-clang-8: ...@@ -259,6 +272,7 @@ test-clang-8:
cache: cache:
paths: paths:
- ${CI_PROJECT_DIR}/build/ - ${CI_PROJECT_DIR}/build/
- ${CONAN_USER_HOME}/.conan/
untracked: true untracked: true
policy: pull-push policy: pull-push
...@@ -291,6 +305,9 @@ build_test-clang-8: ...@@ -291,6 +305,9 @@ build_test-clang-8:
stage: example stage: example
tags: tags:
- corsika - corsika
before_script:
- apt-get update && apt-get install -y -qq python3-pip
- pip3 install conan
script: script:
- cd build - cd build
- set -o pipefail - set -o pipefail
...@@ -311,6 +328,7 @@ build_test-clang-8: ...@@ -311,6 +328,7 @@ build_test-clang-8:
cache: cache:
paths: paths:
- ${CI_PROJECT_DIR}/build/ - ${CI_PROJECT_DIR}/build/
- ${CONAN_USER_HOME}/.conan/
untracked: true untracked: true
policy: pull policy: pull
...@@ -343,6 +361,9 @@ example-clang-8: ...@@ -343,6 +361,9 @@ example-clang-8:
stage: build_test_example stage: build_test_example
tags: tags:
- corsika - corsika
before_script:
- apt-get update && apt-get install -y -qq python3-pip
- pip3 install conan
script: script:
- cd build - cd build
- cmake --build . -- -j4 - cmake --build . -- -j4
...@@ -369,6 +390,7 @@ example-clang-8: ...@@ -369,6 +390,7 @@ example-clang-8:
cache: cache:
paths: paths:
- ${CI_PROJECT_DIR}/build/ - ${CI_PROJECT_DIR}/build/
- ${CONAN_USER_HOME}/.conan/
untracked: true untracked: true
policy: pull policy: pull
...@@ -402,6 +424,9 @@ build_test_example-clang-8: ...@@ -402,6 +424,9 @@ build_test_example-clang-8:
stage: install stage: install
tags: tags:
- corsika - corsika
before_script:
- apt-get update && apt-get install -y -qq python3-pip
- pip3 install conan
script: script:
- cd build - cd build
- set -o pipefail - set -o pipefail
...@@ -418,6 +443,7 @@ build_test_example-clang-8: ...@@ -418,6 +443,7 @@ build_test_example-clang-8:
cache: cache:
paths: paths:
- ${CI_PROJECT_DIR}/build/ - ${CI_PROJECT_DIR}/build/
- ${CONAN_USER_HOME}/.conan/
untracked: true untracked: true
policy: pull policy: pull
...@@ -451,6 +477,9 @@ install-clang-8: ...@@ -451,6 +477,9 @@ install-clang-8:
stage: optional stage: optional
tags: tags:
- corsika - corsika
before_script:
- apt-get update && apt-get install -y -qq python3-pip
- pip3 install conan
script: script:
- cd build - cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release - cmake .. -DCMAKE_BUILD_TYPE=Release
...@@ -472,6 +501,7 @@ install-clang-8: ...@@ -472,6 +501,7 @@ install-clang-8:
cache: cache:
paths: paths:
- ${CI_PROJECT_DIR}/build/ - ${CI_PROJECT_DIR}/build/
- ${CONAN_USER_HOME}/.conan/
untracked: true untracked: true
policy: pull policy: pull
artifacts: artifacts:
...@@ -514,6 +544,9 @@ coverage: ...@@ -514,6 +544,9 @@ coverage:
stage: optional stage: optional
tags: tags:
- corsika - corsika
before_script:
- apt-get update && apt-get install -y -qq python3-pip
- pip3 install conan
script: script:
- cd build - cd build
- cmake .. -DCMAKE_BUILD_TYPE=Coverage - cmake .. -DCMAKE_BUILD_TYPE=Coverage
...@@ -539,6 +572,7 @@ coverage: ...@@ -539,6 +572,7 @@ coverage:
cache: cache:
paths: paths:
- ${CI_PROJECT_DIR}/build/ - ${CI_PROJECT_DIR}/build/
- ${CONAN_USER_HOME}/.conan/
untracked: true untracked: true
policy: pull policy: pull
key: "${CI_COMMIT_REF_SLUG}-gcc" key: "${CI_COMMIT_REF_SLUG}-gcc"
...@@ -557,6 +591,9 @@ sanity: ...@@ -557,6 +591,9 @@ sanity:
stage: optional stage: optional
tags: tags:
- corsika - corsika
before_script:
- apt-get update && apt-get install -y -qq python3-pip
- pip3 install conan
script: script:
- cd build - cd build
- cmake .. -DWITH_CORSIKA_SANITIZERS_ENABLED=ON - cmake .. -DWITH_CORSIKA_SANITIZERS_ENABLED=ON
...@@ -575,6 +612,7 @@ sanity: ...@@ -575,6 +612,7 @@ sanity:
cache: cache:
paths: paths:
- ${CI_PROJECT_DIR}/build/ - ${CI_PROJECT_DIR}/build/
- ${CONAN_USER_HOME}/.conan/
untracked: true untracked: true
policy: pull policy: pull
key: "${CI_COMMIT_REF_SLUG}-gcc" key: "${CI_COMMIT_REF_SLUG}-gcc"
......
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