From cd9713c7d3e3c389352fa3ce0ec0a609fad2969e Mon Sep 17 00:00:00 2001 From: Antoine Regimbeau <antoine.regimbeau@c-s.fr> Date: Mon, 4 Feb 2019 17:00:45 +0100 Subject: [PATCH] Add readme and headers --- ...rfile.shark1.3.4 => Dockerfile.shark3.1.4} | 2 +- CI/README.md | 27 +++++++++++++++++++ CI/configure_option.cmake | 21 +++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) rename CI/{Dockerfile.shark1.3.4 => Dockerfile.shark3.1.4} (99%) create mode 100644 CI/README.md diff --git a/CI/Dockerfile.shark1.3.4 b/CI/Dockerfile.shark3.1.4 similarity index 99% rename from CI/Dockerfile.shark1.3.4 rename to CI/Dockerfile.shark3.1.4 index 7ecf70aed9..96f52716c0 100644 --- a/CI/Dockerfile.shark1.3.4 +++ b/CI/Dockerfile.shark3.1.4 @@ -1,5 +1,5 @@ FROM ubuntu:18.04 as shark-provider -MAINTAINER Babar +MAINTAINER OrfeoToolbox Core Team ENV DEBIAN_FRONTEND noninteractive diff --git a/CI/README.md b/CI/README.md new file mode 100644 index 0000000000..175927776f --- /dev/null +++ b/CI/README.md @@ -0,0 +1,27 @@ +# CI +This folder contains files for the continuous integration. + +## Docker files +The docker files are : + + * Dockerfile.nat : native environment to test OTB. Shark is not on this one as the version OTB is using is not packaged (since 6.7) + * Dockerfile.shark.1.3.4 : native environment and Shark version 3.1.4. + +## CMake files +The docker files are : + + * main_ci.cmake : main script that will launch configure, build and soon test. It aims at configuring Ctest before running the different jobs (site name, build command...) + *configure_option.cmake : script that gathers all options needed by OTB. + +##Yaml file +The last file needed for the CI is the *.gitlab-ci.yml* it aims at interfacing with GitLab. Here is the basic structure : +``` +Job-name: + stage: job-type + image: docker image that will be used + script: + - script that will be launch inside the docker +``` + +# CDash interaction +Results of build can be seen in CDash on the track "Experimental". The site is the image docker that run the build, and the build name should be the branch name that is tested. \ No newline at end of file diff --git a/CI/configure_option.cmake b/CI/configure_option.cmake index 36d68b7895..2bdd397cdb 100644 --- a/CI/configure_option.cmake +++ b/CI/configure_option.cmake @@ -1,3 +1,24 @@ +# +# 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 #This file set the following variable : # * otb_build_project_option # * otb_use_option -- GitLab