Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Computing
cbmroot
Commits
460c93e9
Commit
460c93e9
authored
4 years ago
by
Administrator
Browse files
Options
Downloads
Patches
Plain Diff
Add link to CDash URL also in case of failing tests
parent
f3c60857
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!178
Fix CI runner
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CbmRoot_test.cmake
+16
-5
16 additions, 5 deletions
CbmRoot_test.cmake
with
16 additions
and
5 deletions
CbmRoot_test.cmake
+
16
−
5
View file @
460c93e9
...
...
@@ -6,6 +6,9 @@ Set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
Set
(
CTEST_PROJECT_NAME
"CBMROOT"
)
Set
(
EXTRA_FLAGS $ENV{EXTRA_FLAGS}
)
include
(
${
CTEST_SOURCE_DIRECTORY
}
/CTestConfig.cmake
)
Ctest_Read_Custom_Files
(
"
${
CTEST_SOURCE_DIRECTORY
}
"
)
Set
(
CTEST_UPDATE_COMMAND
"git"
)
Set
(
BUILD_COMMAND
"make"
)
...
...
@@ -76,11 +79,6 @@ If($ENV{ctest_model} MATCHES Nightly OR $ENV{ctest_model} MATCHES Weekly OR $ENV
EndIf
()
Configure_File
(
${
CTEST_SOURCE_DIRECTORY
}
/CTestCustom.cmake
${
CTEST_BINARY_DIRECTORY
}
/CTestCustom.cmake
)
Ctest_Read_Custom_Files
(
"
${
CTEST_BINARY_DIRECTORY
}
"
)
If
(
$ENV{ctest_model} MATCHES MergeRequest
)
set
(
ENV{ctest_model} Continuous
)
EndIf
()
...
...
@@ -150,6 +148,19 @@ If(NOT _RETVAL)
# Pipeline should fail also in case of failed tests
if
(
_ctest_test_ret_val
)
If
(
${
CMAKE_VERSION
}
VERSION_LESS 3.14.0
)
Else
()
message
(
STATUS
" "
)
message
(
STATUS
" You can find the produced results on the CDash server"
)
message
(
STATUS
" "
)
message
(
STATUS
" CDash Build Summary ..: "
"
${
CTEST_DROP_METHOD
}
://
${
CTEST_DROP_SITE
}
/buildSummary.php?buildid=
${
cdash_build_id
}
"
)
message
(
STATUS
" CDash Test List ......: "
"
${
CTEST_DROP_METHOD
}
://
${
CTEST_DROP_SITE
}
/viewTest.php?buildid=
${
cdash_build_id
}
"
)
message
(
STATUS
" "
)
EndIf
()
Message
(
FATAL_ERROR
"Some tests failed."
)
endif
()
...
...
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