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
fe88174c
Commit
fe88174c
authored
5 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
CI: style
parent
b2e222a7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CI/main_ci.cmake
+13
-6
13 additions, 6 deletions
CI/main_ci.cmake
with
13 additions
and
6 deletions
CI/main_ci.cmake
+
13
−
6
View file @
fe88174c
...
...
@@ -99,6 +99,7 @@ ctest_start (Experimental TRACK CI_Build)
ctest_update
()
# --------------------------- Configure ----------------------------------------
ctest_configure
(
BUILD
"
${
CTEST_BINARY_DIRECTORY
}
"
SOURCE
"
${
OTB_SOURCE_DIR
}
"
OPTIONS
"
${
CONFIGURE_OPTIONS
}
"
...
...
@@ -117,6 +118,7 @@ if ( NOT _configure_rv EQUAL 0 )
message
(
FATAL_ERROR
"An error occurs during ctest_configure."
)
endif
()
# ------------------------------ Build -----------------------------------------
ctest_build
(
BUILD
"
${
CTEST_BINARY_DIRECTORY
}
"
RETURN_VALUE _build_rv
CAPTURE_CMAKE_ERROR _build_error
...
...
@@ -132,6 +134,7 @@ if ( NOT _build_rv EQUAL 0 )
message
(
SEND_ERROR
"An error occurs during ctest_build."
)
endif
()
# ----------------------------- Test -------------------------------------------
if
(
ci_skip_testing
)
message
(
STATUS
"Skip testing"
)
set
(
_test_rv 0
)
...
...
@@ -151,10 +154,14 @@ if ( NOT _test_rv EQUAL 0 )
message
(
SEND_ERROR
"An error occurs during ctest_test."
)
endif
()
# ----------------------------- Submit -----------------------------------------
ctest_submit
()
# Install
if
(
NOT ci_skip_install
)
# --------------------------- Install ----------------------------------------
if
(
ci_skip_install
)
message
(
STATUS
"Skip install"
)
set
(
_install_rv 0
)
else
()
ctest_build
(
BUILD
"
${
CTEST_BINARY_DIRECTORY
}
"
TARGET install
RETURN_VALUE _install_rv
...
...
@@ -171,14 +178,14 @@ if(NOT ci_skip_install)
"
${
OTB_SOURCE_DIR
}
/log/install_return_value_log.txt"
"
${
_install_rv
}
"
)
file
(
WRITE
"
${
OTB_SOURCE_DIR
}
/log/install_error_log.txt"
"
${
_install_error
}
"
)
endif
()
if
(
NOT install_rv EQUAL 0
)
message
(
SEND_ERROR
"Install have failed."
)
endif
()
if
(
NOT install_rv EQUAL 0
)
message
(
SEND_ERROR
"Install has failed."
)
endif
()
# ---------------------------- Doxygen -----------------------------------------
if
(
ENABLE_DOXYGEN
)
# compile doxygen
ctest_build
(
BUILD
"
${
CTEST_BINARY_DIRECTORY
}
"
TARGET Documentation
RETURN_VALUE _doxy_rv
...
...
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