Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Commandre Benjamin
OTB
Commits
f956fdf1
Commit
f956fdf1
authored
May 20, 2019
by
Antoine Regimbeau
Browse files
Merge branch 'superbuild_ci-macos' into 'develop'
CI Add MacOS See merge request orfeotoolbox/otb!499
parents
e2e5535b
6c9dc4e1
Changes
6
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
f956fdf1
...
...
@@ -61,8 +61,8 @@ fast-build:
when
:
on_failure
expire_in
:
24 hrs
paths
:
-
log/*.txt
-
build/*/*.log
-
build/*/*.log
#CMake log
-
log/*.txt
# Others
debian-build
:
extends
:
.common-build
...
...
@@ -94,9 +94,8 @@ ubuntu-llvm:
expire_in
:
24 hrs
when
:
always
paths
:
-
sb_branch.txt
# This recovers logs from superbuild build
-
build/*/*/*/*.log
-
sb_branch.txt
# Needed to checkout correct branch in build step
-
build/*/*/*/*.log
# Superbuild log
## Ubuntu superbuild
ubuntu-superbuild-prepare
:
...
...
@@ -114,7 +113,7 @@ ubuntu-superbuild-build:
dependencies
:
-
ubuntu-superbuild-prepare
## Cent
os
superbuild
## Cent
OS
superbuild
centos-superbuild-prepare
:
extends
:
.common-prepare
image
:
$BUILD_IMAGE_REGISTRY/otb-centos-superbuild-base:6.6
...
...
@@ -129,3 +128,28 @@ centos-superbuild-build:
-
xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -VV -S CI/main_packages.cmake -DIMAGE_NAME:string=otb-centos-superbuild-base
dependencies
:
-
centos-superbuild-prepare
## MacOS superbuild
macos-superbuild-prepare
:
tags
:
-
macos
extends
:
.common-prepare
before_script
:
# No need to install lfs as this machine is persistent
# No need to do git config
# Checkout the expected branch
-
export GIT_LFS_SKIP_SMUDGE=1
-
git checkout -f -q $CI_COMMIT_SHA
-
export GIT_LFS_SKIP_SMUDGE=0
script
:
-
ctest -VV -S CI/prepare_superbuild.cmake -DIMAGE_NAME:string=otb-macos-superbuild
macos-superbuild-build
:
tags
:
-
macos
extends
:
.common-build
script
:
-
ctest -V -S CI/main_superbuild.cmake -DIMAGE_NAME:string=otb-macos-superbuild
-
ctest -VV -S CI/main_packages.cmake -DIMAGE_NAME:string=otb-macos-superbuild
dependencies
:
-
macos-superbuild-prepare
CI/main_superbuild.cmake
View file @
f956fdf1
...
...
@@ -70,6 +70,12 @@ endif()
if
(
clone_res
)
message
(
SEND_ERROR
"Problem in retreiving the archive"
)
message
(
"Command : COMMAND
${
GIT
}
clone
${
REMOTE
}
--branch
${
BRANCH_NAME
}
\
--depth 1 superbuild-artifact"
)
message
(
"Result :"
)
message
(
"clone_res =
${
clone_res
}
"
)
message
(
"clone_out =
${
clone_out
}
"
)
message
(
"clone_err =
${
clone_err
}
"
)
return
()
endif
()
...
...
CI/otb-macos-superbuild.cmake
0 → 100644
View file @
f956fdf1
#
# Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
#
# This file is part of Orfeo Toolbox
#
# https://www.orfeo-toolbox.org/
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Configuration options for macOS
set
(
site_option
"OTB_USE_GLUT=OFF
OTB_USE_GLFW=OFF"
)
\ No newline at end of file
CI/prepare_superbuild.cmake
View file @
f956fdf1
...
...
@@ -286,4 +286,4 @@ if ( DEBUG )
message
(
"push_res =
${
push_res
}
"
)
message
(
"push_out =
${
push_out
}
"
)
message
(
"push_err =
${
push_err
}
"
)
endif
()
endif
()
\ No newline at end of file
SuperBuild/CMake/External_gdal.cmake
View file @
f956fdf1
...
...
@@ -52,6 +52,7 @@ if(UNIX)
#we don't do any framework build on osx. So let's be sure on case of gdal
if
(
APPLE
)
list
(
APPEND GDAL_SB_CONFIG
"--with-macosx-framework=no"
)
list
(
APPEND GDAL_SB_CONFIG
"LDFLAGS=-headerpad_max_install_names"
)
endif
()
# PATCH_COMMAND ${CMAKE_COMMAND} -E touch ${GDAL_SB_SRC}/config.rpath
...
...
SuperBuild/CMake/External_netcdf.cmake
View file @
f956fdf1
...
...
@@ -36,7 +36,7 @@ endif()
ExternalProject_Add
(
NETCDF
PREFIX NETCDF
URL
"
f
tp://
ftp
.unidata.ucar.edu/
pub
/netcdf/netcdf-4.4.1.1.tar.gz"
URL
"
ht
tp
s
://
www
.unidata.ucar.edu/
downloads
/netcdf/
ftp/
netcdf-4.4.1.1.tar.gz"
URL_MD5 503a2d6b6035d116ed53b1d80c811bda
SOURCE_DIR
${
NETCDF_SB_SRC
}
BINARY_DIR
${
NETCDF_SB_BUILD_DIR
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment