diff --git a/CI/build.sh b/CI/build.sh
index fee2b482a688bf1a65745eed55a1272a1ff98a1a..180e7252d4cce7ec0655dde3eb9eb999aeb31639 100755
--- a/CI/build.sh
+++ b/CI/build.sh
@@ -8,38 +8,40 @@ tar xzf otb-data-master.tar.gz
 mv otb-data-master otb-data
 rm -f otb-data-master.tar.gz
 
-mkdir build
-cd build
-cmake -DCMAKE_BUILD_TYPE=Release \
-      -DCMAKE_INSTALL_PREFIX:PATH=/usr/local \
-      -DCMAKE_C_FLAGS:STRING=-fPIC -Wall -Wextra \
-      -DCMAKE_CXX_FLAGS:STRING=-fPIC -Wall -Wextra -Wno-cpp \
-      -DBUILD_SHARED_LIBS:BOOL=ON \
-      -DBUILD_TESTING:BOOL=ON \
-      -DBUILD_EXAMPLES:BOOL=ON \
-      -DOTB_USE_CURL:BOOL=ON \
-      -DOTB_USE_GLEW:BOOL=ON \
-      -DOTB_USE_GLFW:BOOL=ON \
-      -DOTB_USE_GLUT:BOOL=ON \
-      -DOTB_USE_LIBKML:BOOL=ON \
-      -DOTB_USE_LIBSVM:BOOL=ON \
-      -DOTB_USE_MPI:BOOL=OFF \
-      -DOTB_USE_MUPARSER:BOOL=ON \
-      -DOTB_USE_MUPARSERX:BOOL=ON \
-      -DOTB_USE_OPENCV:BOOL=ON \
-      -DOTB_USE_OPENGL:BOOL=ON \
-      -DOTB_USE_OPENMP:BOOL=ON \
-      -DOTB_USE_QT:BOOL=ON \
-      -DOTB_USE_QWT:BOOL=ON \
-      -DOTB_USE_SHARK:BOOL=OFF \
-      -DOTB_USE_SPTW:BOOL=OFF \
-      -DOTB_DATA_ROOT:PATH=${TOP_DIR}/otb-data \
-      -DOTB_DATA_USE_LARGEINPUT:BOOL=OFF \
-      -DOTB_WRAP_PYTHON:BOOL=ON \
-      -DOTB_WRAP_PYTHON3:BOOL=ON \
-      -Dopencv_INCLUDE_DIR:PATH=/usr/include \
-      ..
+ctest -S main_ci.cmake
 
-make -j $(grep -c processor /proc/cpuinfo 2>/dev/null || echo 8)
-
-xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -T test
+# mkdir build
+# cd build
+# cmake -DCMAKE_BUILD_TYPE=Release \
+      # -DCMAKE_INSTALL_PREFIX:PATH=/usr/local \
+      # -DCMAKE_C_FLAGS:STRING=-fPIC -Wall -Wextra \
+      # -DCMAKE_CXX_FLAGS:STRING=-fPIC -Wall -Wextra -Wno-cpp \
+      # -DBUILD_SHARED_LIBS:BOOL=ON \
+      # -DBUILD_TESTING:BOOL=ON \
+      # -DBUILD_EXAMPLES:BOOL=ON \
+      # -DOTB_USE_CURL:BOOL=ON \
+      # -DOTB_USE_GLEW:BOOL=ON \
+      # -DOTB_USE_GLFW:BOOL=ON \
+      # -DOTB_USE_GLUT:BOOL=ON \
+      # -DOTB_USE_LIBKML:BOOL=ON \
+      # -DOTB_USE_LIBSVM:BOOL=ON \
+      # -DOTB_USE_MPI:BOOL=OFF \
+      # -DOTB_USE_MUPARSER:BOOL=ON \
+      # -DOTB_USE_MUPARSERX:BOOL=ON \
+      # -DOTB_USE_OPENCV:BOOL=ON \
+      # -DOTB_USE_OPENGL:BOOL=ON \
+      # -DOTB_USE_OPENMP:BOOL=ON \
+      # -DOTB_USE_QT:BOOL=ON \
+      # -DOTB_USE_QWT:BOOL=ON \
+      # -DOTB_USE_SHARK:BOOL=OFF \
+      # -DOTB_USE_SPTW:BOOL=OFF \
+      # -DOTB_DATA_ROOT:PATH=${TOP_DIR}/otb-data \
+      # -DOTB_DATA_USE_LARGEINPUT:BOOL=OFF \
+      # -DOTB_WRAP_PYTHON:BOOL=ON \
+      # -DOTB_WRAP_PYTHON3:BOOL=ON \
+      # -Dopencv_INCLUDE_DIR:PATH=/usr/include \
+      # ..
+# 
+# make -j $(grep -c processor /proc/cpuinfo 2>/dev/null || echo 8)
+# 
+# xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -T test
diff --git a/CI/main_ci.cmake b/CI/main_ci.cmake
new file mode 100644
index 0000000000000000000000000000000000000000..385bce91818629bd5b62eaf748cf44863fced958
--- /dev/null
+++ b/CI/main_ci.cmake
@@ -0,0 +1,13 @@
+# This script is a prototype for the futur CI
+SET( ENV{LANG} "C" ) # Only ascii output
+
+SET (CTEST_SOURCE_DIRECTORY "/opt/otb/")
+SET (CTEST_BINARY_DIRECTORY "/opt/otb/build/")
+
+SET (DATA_ROOT_DIR "") # todo
+
+ctest_start("Nightly")
+ctest_update()
+ctest_configure()
+ctest_build()
+ctest_test()
\ No newline at end of file