Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Julien Cabieces
otb
Commits
0edad396
Commit
0edad396
authored
6 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
CI: change build name and export short SHA to cdash
parent
a59d870f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CI/main_ci.cmake
+12
-3
12 additions, 3 deletions
CI/main_ci.cmake
with
12 additions
and
3 deletions
CI/main_ci.cmake
+
12
−
3
View file @
0edad396
...
...
@@ -30,13 +30,14 @@ set (CTEST_CMAKE_GENERATOR "Ninja")
set
(
ci_profile wip
)
set
(
ci_mr_source
"$ENV{CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}"
)
set
(
ci_mr_target
"$ENV{CI_MERGE_REQUEST_TARGET_BRANCH_NAME}"
)
set
(
ci_mr_iid
"$ENV{CI_MERGE_REQUEST_IID}"
)
set
(
ci_ref_name
"$ENV{CI_COMMIT_REF_NAME}"
)
set
(
CTEST_BUILD_NAME
"$ENV{CI_COMMIT_SHORT_SHA}"
)
if
(
ci_mr_source AND ci_mr_target
)
set
(
CTEST_BUILD_NAME
"
${
CTEST_BUILD_NAME
}
(
${
ci_mr_source
}
to
${
ci_mr_
target
}
)"
)
if
(
ci_mr_source AND ci_mr_target
AND ci_mr_iid
)
set
(
CTEST_BUILD_NAME
"
${
ci_mr_source
}
(MR
${
ci_mr_
iid
}
)"
)
set
(
ci_profile mr
)
elseif
(
ci_ref_name
)
set
(
CTEST_BUILD_NAME
"
${
CTEST_BUILD_NAME
}
(
${
ci_ref_name
}
)
"
)
set
(
CTEST_BUILD_NAME
"
${
ci_ref_name
}
"
)
if
(
"
${
ci_ref_name
}
"
STREQUAL
"develop"
)
set
(
ci_profile develop
)
elseif
(
"
${
ci_ref_name
}
"
MATCHES
"^release-[0-9]+
\\
.[0-9]+
\$
"
)
...
...
@@ -64,11 +65,19 @@ message(STATUS "CI profile : ${ci_profile}")
set
(
CONFIGURE_OPTIONS
""
)
include
(
"
${
CMAKE_CURRENT_LIST_DIR
}
/configure_option.cmake"
)
# Sources are already checked out : do nothing for update
set
(
CTEST_GIT_UPDATE_CUSTOM echo No update
)
# Look for a GIT command-line client.
find_program
(
CTEST_GIT_COMMAND NAMES git git.cmd
)
# End of configuration
ctest_start
(
Experimental TRACK Experimental
)
ctest_update
()
ctest_configure
(
BUILD
"
${
CTEST_BINARY_DIRECTORY
}
"
SOURCE
"
${
OTB_SOURCE_DIR
}
"
OPTIONS
"
${
CONFIGURE_OPTIONS
}
"
...
...
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