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
5ef2cca4
Commit
5ef2cca4
authored
6 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
CI: enable documentation build
parent
ebab3404
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+5
-1
5 additions, 1 deletion
.gitlab-ci.yml
CI/main_ci.cmake
+15
-0
15 additions, 0 deletions
CI/main_ci.cmake
CI/ubuntu-18.04-llvm-shark.cmake
+12
-0
12 additions, 0 deletions
CI/ubuntu-18.04-llvm-shark.cmake
with
32 additions
and
1 deletion
.gitlab-ci.yml
+
5
−
1
View file @
5ef2cca4
...
...
@@ -60,7 +60,11 @@ debian-build:
image
:
$BUILD_IMAGE_REGISTRY/otb-ubuntu-shark:18.04
script
:
-
ctest -VV -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-llvm-shark
artifacts
:
paths
:
-
build/CookBook-*-html.tar.gz
-
build/Documentation/Cookbook/latex/CookBook-*.pdf
-
build/Documentation/Doxygen/OTB-Doxygen-*.tar.bz2
# This is needed to have only one pipeline in a merge request context
ubuntu-llvm
:
...
...
This diff is collapsed.
Click to expand it.
CI/main_ci.cmake
+
15
−
0
View file @
5ef2cca4
...
...
@@ -45,6 +45,12 @@ elseif(ci_ref_name)
endif
()
endif
()
# set pipelines to enable documentation
set
(
ci_cookbook_profiles mr develop release
)
set
(
ci_doxygen_profiles mr develop release
)
list
(
FIND ci_cookbook_profiles
${
ci_profile
}
ci_do_cookbook
)
list
(
FIND ci_doxygen_profiles
${
ci_profile
}
ci_do_doxygen
)
#Warning, this variable is used in cdash_status.py. If change from
# ${IMAGE_NAME} to something else do not forget to change it.
set
(
CTEST_SITE
"
${
IMAGE_NAME
}
"
)
...
...
@@ -102,6 +108,15 @@ if ( NOT _build_rv EQUAL 0 )
message
(
SEND_ERROR
"An error occurs during ctest_build."
)
endif
()
if
(
NOT
${
ci_do_doxygen
}
EQUAL -1
)
# compile doxygen
ctest_build
(
BUILD
"
${
CTEST_BINARY_DIRECTORY
}
"
TARGET Documentation
RETURN_VALUE _doxy_rv
CAPTURE_CMAKE_ERROR _doxy_error
)
endif
()
# Uncomment when ready for test
# ctest_test(PARALLEL_LEVEL 8
# RETURN_VALUE _test_rv
...
...
This diff is collapsed.
Click to expand it.
CI/ubuntu-18.04-llvm-shark.cmake
+
12
−
0
View file @
5ef2cca4
...
...
@@ -29,3 +29,15 @@ CMAKE_MODULE_LINKER_FLAGS:STRING=-fuse-ld=lld
CMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=lld
CMAKE_C_COMPILER_LAUNCHER:STRING=ccache
CMAKE_CXX_COMPILER_LAUNCHER:STRING=ccache"
)
if
(
NOT
${
ci_do_cookbook
}
EQUAL -1
)
set
(
site_option
"
${
site_option
}
BUILD_COOKBOOK:BOOL=ON"
)
endif
()
if
(
NOT
${
ci_do_doxygen
}
EQUAL -1
)
set
(
site_option
"
${
site_option
}
BUILD_DOCUMENTATION:BOOL=ON"
)
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