From bd55d3f2a938abc910ee2bc4a184a688c18ea7ca Mon Sep 17 00:00:00 2001
From: Antoine Regimbeau <antoine.regimbeau@c-s.fr>
Date: Thu, 31 Jan 2019 13:37:54 +0100
Subject: [PATCH] Only build in CI

---
 .gitlab-ci.yml            |  2 +-
 CI/configure_option.cmake | 50 +++++++++++++++++++--------------------
 CI/main_ci.cmake          |  4 ++--
 3 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 99bf614148..5a08a36eed 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,7 +16,7 @@ build:ubuntu-18.04:release:
   stage: build
   image: registry.orfeo-toolbox.org/sdinot/otb:ubuntu-18.04-gcc
   script:
-    - CI/build.sh
+    - ctest -S main_ci.cmake
   artifacts:
     expire_in: 1 week
     paths:
diff --git a/CI/configure_option.cmake b/CI/configure_option.cmake
index 01ae0021f2..560ff6dac8 100644
--- a/CI/configure_option.cmake
+++ b/CI/configure_option.cmake
@@ -5,37 +5,37 @@
 # * CONFIGURE_OPTIONS
 
 set (otb_build_project_option 
-"BUILD_COOKBOOK:BOOL=OFF
-BUILD_EXAMPLES:BOOL=OFF
+"BUILD_COOKBOOK:BOOL=ON
+BUILD_EXAMPLES:BOOL=ON
 BUILD_SHARED_LIBS:BOOL=ON
 BUILD_TESTING:BOOL=ON")
 
 set (otb_use_option
-"OTB_USE_6S:BOOL=OFF
-OTB_USE_CURL:BOOL=OFF
-OTB_USE_GLEW:BOOL=OFF
-OTB_USE_GLFW:BOOL=OFF
-OTB_USE_GLUT:BOOL=OFF
-OTB_USE_GSL:BOOL=OFF
-OTB_USE_LIBKML:BOOL=OFF
-OTB_USE_LIBSVM:BOOL=OFF
-OTB_USE_MPI:BOOL=OFF
-OTB_USE_MUPARSER:BOOL=OFF
-OTB_USE_MUPARSERX:BOOL=OFF
-OTB_USE_OPENCV:BOOL=OFF
-OTB_USE_OPENGL:BOOL=OFF
-OTB_USE_OPENMP:BOOL=OFF
-OTB_USE_QT:BOOL=OFF
-OTB_USE_QWT:BOOL=OFF
-OTB_USE_SHARK:BOOL=OFF
-OTB_USE_SIFTFAST:BOOL=OFF
-OTB_USE_SPTW:BOOL=OFF
-OTB_USE_SSE_FLAGS:BOOL=OFF")
+"OTB_USE_6S:BOOL=ON
+OTB_USE_CURL:BOOL=ON
+OTB_USE_GLEW:BOOL=ON
+OTB_USE_GLFW:BOOL=ON
+OTB_USE_GLUT:BOOL=ON
+OTB_USE_GSL:BOOL=ON
+OTB_USE_LIBKML:BOOL=ON
+OTB_USE_LIBSVM:BOOL=ON
+OTB_USE_MPI:BOOL=ON
+OTB_USE_MUPARSER:BOOL=ON
+OTB_USE_MUPARSERX:BOOL=ON
+OTB_USE_OPENCV:BOOL=ON
+OTB_USE_OPENGL:BOOL=ON
+OTB_USE_OPENMP:BOOL=ON
+OTB_USE_QT:BOOL=ON
+OTB_USE_QWT:BOOL=ON
+OTB_USE_SHARK:BOOL=ON
+OTB_USE_SIFTFAST:BOOL=ON
+OTB_USE_SPTW:BOOL=ON
+OTB_USE_SSE_FLAGS:BOOL=ON")
 
 set (otb_wrap_option
-"OTB_WRAP_JAVA:BOOL=OFF
-OTB_WRAP_PYTHON:BOOL=OFF
-OTB_WRAP_PYTHON3:BOOL=OFF")
+"OTB_WRAP_JAVA:BOOL=ON
+OTB_WRAP_PYTHON:BOOL=ON
+OTB_WRAP_PYTHON3:BOOL=ON")
 
 set (otb_data_option
 "OTB_DATA_ROOT:PATH=${OTB_DATA_ROOT}
diff --git a/CI/main_ci.cmake b/CI/main_ci.cmake
index eab27dcf92..34ed2fca2e 100644
--- a/CI/main_ci.cmake
+++ b/CI/main_ci.cmake
@@ -56,6 +56,6 @@ if ( _configure_rv EQUAL -1 )
     ${_build_error}")
 endif()
 
-ctest_test(PARALLEL_LEVEL 8])
+# ctest_test(PARALLEL_LEVEL 8])
 
-ctest_submit()
\ No newline at end of file
+# ctest_submit()
\ No newline at end of file
-- 
GitLab