IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pranav Sampathkumar
corsika
Commits
b1288e92
Commit
b1288e92
authored
3 years ago
by
Ralf Ulrich
Browse files
Options
Downloads
Plain Diff
Merge branch '451-ci-sometimes-fails-to-run-tests' into 'master'
Resolve "CI sometimes fails to run tests" Closes
#451
See merge request
!395
parents
b74ba09d
901cf505
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-123
2 additions, 123 deletions
.gitlab-ci.yml
with
2 additions
and
123 deletions
.gitlab-ci.yml
+
2
−
123
View file @
b1288e92
...
...
@@ -28,13 +28,9 @@ variables:
stages
:
-
quality
-
config
-
build
-
test
-
build_test
-
example
-
build_test_example
-
python
-
install
-
optional
...
...
@@ -117,85 +113,6 @@ config-clang-8:
####### BUILD (only manual) ##############
##########################################################
# the generic build template job
# normal pipeline for each commit
.build
:
stage
:
build
tags
:
-
corsika
script
:
-
mkdir -p build
-
cd build
-
cmake .. -DCMAKE_BUILD_TYPE=Debug -DUSE_Pythia8_C8=C8
-
cmake --build . -- -j4
rules
:
-
if
:
$CI_MERGE_REQUEST_ID
when
:
manual
-
if
:
$CI_COMMIT_TAG
when
:
manual
-
if
:
$CI_COMMIT_BRANCH
when
:
manual
allow_failure
:
true
# build for gcc
build-u-18_04
:
extends
:
.build
image
:
corsika/devel:u-18.04
# build for clang
build-clang-8
:
extends
:
.build
image
:
corsika/devel:clang-8
####### TEST (only manual) ##############
##########################################################
# generic test template job
# normal pipeline for each commit
.test
:
stage
:
test
tags
:
-
corsika
script
:
-
mkdir -p build
-
cd build
-
cmake .. -DCMAKE_BUILD_TYPE=Debug -DUSE_Pythia8_C8=C8
-
set -o pipefail
-
ctest -j4
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
reports
:
junit
:
-
${CI_PROJECT_DIR}/build/test_outputs/junit*.xml
# test for gcc
test-u-18_04
:
extends
:
.test
image
:
corsika/devel:u-18.04
# test for clang
test-clang-8
:
extends
:
.test
image
:
corsika/devel:clang-8
####### BUILD-TEST (all builds <= Draft/WIP, default) ##############
##########################################################
...
...
@@ -245,8 +162,6 @@ build_test-clang-8:
####### BUILD-TEST-EXAMPLE (only non-Draft/non-WIP) ##############
##########################################################
...
...
@@ -261,7 +176,7 @@ build_test-clang-8:
-
mkdir -p build
-
cd build
-
cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/install -DCMAKE_BUILD_TYPE=Debug -DUSE_Pythia8_C8=C8
-
cmake --build . -- -j4
-
cmake --build . --
VERBOSE=1
-j4
-
set -o pipefail
-
ctest -j4
-
cmake --install .
...
...
@@ -309,42 +224,6 @@ build_test_example-clang-8:
####### INSTALL (only manual) ##############
##########################################################
# generic install template job
# make install
.install
:
stage
:
install
tags
:
-
corsika
script
:
-
mkdir -p build
-
cd build
-
cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/install -DCMAKE_BUILD_TYPE=Debug -DUSE_Pythia8_C8=C8
-
set -o pipefail
-
cmake --install .
rules
:
-
if
:
$CI_MERGE_REQUEST_ID
when
:
manual
-
if
:
$CI_COMMIT_TAG
when
:
manual
-
if
:
$CI_COMMIT_BRANCH
when
:
manual
allow_failure
:
true
# install for gcc
install-u-18_04
:
extends
:
.install
image
:
corsika/devel:u-18.04
# install for clang
install-clang-8
:
extends
:
.install
image
:
corsika/devel:clang-8
####### OPTIONAL ##############
...
...
@@ -366,7 +245,7 @@ install-clang-8:
-
mkdir -p build_examples
-
cd build_examples
-
cmake -DCMAKE_BUILD_TYPE=Release ../install/share/corsika/examples
-
cmake --build . -- -j2
-
cmake --build . --
VERBOSE=1
-j2
-
cmake --build . --target run_examples -- -j2
rules
:
-
if
:
'
$CI_MERGE_REQUEST_LABELS
=~
/Ready
for
code
review/'
# run on merge requests, if label 'Ready for code review' is set
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment