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
fd9b2307
Commit
fd9b2307
authored
6 years ago
by
Antoine Regimbeau
Browse files
Options
Downloads
Patches
Plain Diff
Add build and testing to CI
parent
3edc614e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CI/configure_option.cmake
+0
-1
0 additions, 1 deletion
CI/configure_option.cmake
CI/main_ci.cmake
+18
-7
18 additions, 7 deletions
CI/main_ci.cmake
with
18 additions
and
8 deletions
CI/configure_option.cmake
+
0
−
1
View file @
fd9b2307
...
...
@@ -20,7 +20,6 @@ OTB_USE_GLUT:BOOL=OFF
OTB_USE_GSL:BOOL=OFF
OTB_USE_LIBKML:BOOL=OFF
OTB_USE_LIBSVM:BOOL=OFF
OTB_USE_MAPNIK:BOOL=OFF
OTB_USE_MPI:BOOL=OFF
OTB_USE_MUPARSER:BOOL=OFF
OTB_USE_MUPARSERX:BOOL=OFF
...
...
This diff is collapsed.
Click to expand it.
CI/main_ci.cmake
+
18
−
7
View file @
fd9b2307
...
...
@@ -9,8 +9,9 @@ set (CTEST_SOURCE_DIRECTORY "${OTB_SOURCE_DIR}")
set
(
CTEST_BINARY_DIRECTORY
"
${
OTB_SOURCE_DIR
}
/build/"
)
set
(
CMAKE_COMMAND
"cmake"
)
set
(
PROJECT_SOURCE_DIR
"
${
OTB_SOURCE_DIR
}
"
)
# set (CTEST_BUILD_COMMAND "make")
# number of thread used for compilation
set
(
CTEST_BUILD_FLAGS
"-j8"
)
set
(
CTEST_BUILD_COMMAND
"make"
)
set
(
CTEST_CMAKE_GENERATOR
"Unix Makefiles"
)
set
(
CTEST_BUILD_NAME
"CI_TEST"
)
...
...
@@ -31,12 +32,22 @@ include ( "${CMAKE_CURRENT_LIST_DIR}/configure_option.cmake" )
ctest_configure
(
BUILD
"
${
CTEST_BINARY_DIRECTORY
}
"
SOURCE
"
${
OTB_SOURCE_DIR
}
"
OPTIONS
"
${
CONFIGURE_OPTIONS
}
"
RETURN_VALUE _configure_rv
)
RETURN_VALUE _configure_rv
CAPTURE_CMAKE_ERROR _configure_error
)
if
(
_configure_rv EQUAL -1
)
message
(
"An error occurs during ctest_configure:
${
_configure_error
}
"
)
endif
()
ctest_build
(
BUILD
"
${
CTEST_BINARY_DIRECTORY
}
"
RETURN_VALUE _build_rv]
CAPTURE_CMAKE_ERROR _build_error]
)
if
(
_configure_rv EQUAL -1
)
message
(
"An error occurs during ctest_configure
${
_configure_rv
}
"
)
message
(
"An error occurs during ctest_build:
${
_build_error
}
"
)
endif
()
message
(
"
${
_configure_rv
}
"
)
# ctest_build()
# ctest_test()
\ No newline at end of file
ctest_test
()
\ No newline at end of file
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