Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
99084e08
Commit
99084e08
authored
Feb 04, 2019
by
Antoine Regimbeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test to retreive value of Gitlab variable
parent
c590130a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
13 deletions
+31
-13
.gitlab-ci.yml
.gitlab-ci.yml
+2
-4
CI/main_ci.cmake
CI/main_ci.cmake
+29
-9
No files found.
.gitlab-ci.yml
View file @
99084e08
...
...
@@ -17,7 +17,7 @@ natif-build:
stage
:
build
image
:
registry.orfeo-toolbox.org/sdinot/otb:ubuntu-18.04-gccV0.2
script
:
-
echo $
{
SITE_NAME
}
-
echo $SITE_NAME
# - ctest -VV -S CI/main_ci.cmake \
# "-DCTEST_SITE:string=${CI_MERGE_REQUEST_PROJECT_PATH}_ubuntu-18.04"
...
...
@@ -26,6 +26,4 @@ shark-build:
stage
:
build
image
:
registry.orfeo-toolbox.org/sdinot/otb:ubuntu18.04-shark3.1.4
script
:
-
echo $SITE_NAME
# - ctest -VV -S CI/main_ci.cmake \
# -DCTEST_SITE:string=${CI_MERGE_REQUEST_PROJECT_PATH}_ubuntu18.04-shark3.1.4
\ No newline at end of file
-
ctest -VV -S CI/main_ci.cmake
\ No newline at end of file
CI/main_ci.cmake
View file @
99084e08
# This script is a prototype for the futur CI
#
# 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.
#
# This script is a prototype for the future CI, it may evolve rapidly in a near future
get_filename_component
(
OTB_SOURCE_DIR
${
CMAKE_CURRENT_LIST_DIR
}
DIRECTORY
)
set
(
ENV{LANG}
"C"
)
# Only ascii output
# Build Configuration : Release, Debug..
set
(
CTEST_BUILD_CONFIGURATION
"Release"
)
# set (CTEST_SITE "${BUILD_NAME}")
set
(
CTEST_CMAKE_GENERATOR
"Unix Makefiles"
)
set
(
CTEST_BUILD_NAME
"ENV{CI_MERGE_REQUEST_PROJECT_PATH}"
)
set
(
CTEST_SITE
"ENV{CI_REGISTRY_IMAGE}"
)
# Directory variable
set
(
CTEST_SOURCE_DIRECTORY
"
${
OTB_SOURCE_DIR
}
"
)
...
...
@@ -17,8 +39,6 @@ set (CMAKE_COMMAND "cmake")
set
(
CTEST_BUILD_FLAGS
"-j8"
)
# number of thread used for compilation
set
(
CTEST_BUILD_COMMAND
"make
${
CTEST_BUILD_FLAGS
}
"
)
set
(
CTEST_CMAKE_GENERATOR
"Unix Makefiles"
)
set
(
CTEST_BUILD_NAME
"GitLab_ci_experimentation"
)
# Data directory setting
...
...
@@ -46,10 +66,10 @@ if ( _configure_rv EQUAL -1 )
${
_configure_error
}
"
)
endif
()
ctest_build
(
BUILD
"
${
CTEST_BINARY_DIRECTORY
}
"
RETURN_VALUE _build_rv]
CAPTURE_CMAKE_ERROR _build_error]
)
#
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_build:
...
...
@@ -58,4 +78,4 @@ endif()
# ctest_test(PARALLEL_LEVEL 8])
ctest_submit
()
\ No newline at end of file
# ctest_submit()
\ No newline at end of file
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