Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f77381ad authored by hhakim's avatar hhakim
Browse files

Add python and matlab wrappers to linux tests.

Minor change: use a cmake min version in CDasthConfScriptLinux.cmake consistent with main CMakeLists.txt.
parent d4c88fb9
No related branches found
No related tags found
No related merge requests found
ctest_linux:
.ctest_linux_template: &ctest_linux_script
script:
- ctest -O build/ctest_linux.log -S ./CDashConfScriptLinux.cmake
tags:
- linux
ctest_linux:
<<: *ctest_linux_script
ctest_linux_python:
variables: {BUILD_WRAPPER_PYTHON: "ON"}
<<: *ctest_linux_script
ctest_linux_matlab:
variables: {BUILD_WRAPPER_MATLAB: "ON"}
<<: *ctest_linux_script
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.4)
cmake_minimum_required(VERSION 3.0.2)
SET (CTEST_SOURCE_DIRECTORY "./")
......@@ -13,16 +12,29 @@ SET (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)
set(CTEST_SITE "FaustLinux")
if($ENV{BUILD_WRAPPER_PYTHON} MATCHES "ON")
set(CTEST_SITE "${CTEST_SITE}Python")
#set(BUILD_WRAPPER_PYTHON ON CACHE BOOL "" FORCE) #ignored by configure
set(CONF_OPTIONS "-DBUILD_WRAPPER_PYTHON=ON")
elseif($ENV{BUILD_WRAPPER_MATLAB} MATCHES "ON")
set(CTEST_SITE "${CTEST_SITE}Matlab")
#set(BUILD_WRAPPER_MATLAB ON CACHE BOOL "" FORCE)
set(CONF_OPTIONS "-DBUILD_WRAPPER_MATLAB=ON")
endif()
message(STATUS "The git branch is:" $ENV{CI_COMMIT_REF_NAME})
message(STATUS "The git commit is:" $ENV{CI_COMMIT_SHA})
CTEST_START("Experimental") # TODO: Continuous mode ?
message(STATUS "The site name is: " ${CTEST_SITE})
#CTEST_START("Nightly")
#CTEST_START("Continuous")
#CTEST_UPDATE() # no need to checkout because gitlab-runner does it
set(BUILD_WRAPPER_PYTHON ON CACHE BOOL "" FORCE)
CTEST_CONFIGURE()
CTEST_CONFIGURE(OPTIONS ${CONF_OPTIONS})
# no OPTIONS (arg)
#CTEST_BUILD(TARGET install) #no need to install, just compiling
CTEST_BUILD()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment