-if echo $CI_RUNNER_TAGS | grep -w cuda; then export USE_GPU_MOD=ON; ./misc/continuous_integration/jobs/linux/build_gpu_mod.sh 11.6; export LD_LIBRARY_PATH=$PWD/gpu_mod/build-cu11.6; export CUDA_VERSIONS=cu11.6;fi# enable GPU tests if the runner is capable of
variables:{BUILD_WRAPPER_MATLAB:"ON",SLOW_TESTS:"OFF",NOCPPTESTS:"ON",BUILD_MULTITHREAD:"OFF",BUILD_FLOAT_MEX:"ON"}# MT OFF because of macOS complicated way to enable OpenMP (but packages are OMP enabled)
# fail the ci job if any ctest test (or unit test) have failed
-export BUILD_DIR=$(ls -d build_* | tail -1)
-if [[ ! -r ${BUILD_DIR}/matlab_matfaust_test_output.html ]]; then exit 1;fi
-echo "Failed tests:"
-if grep -B 1 'Outcome:.*Failed' ${BUILD_DIR}/matlab_matfaust_test_output.html | sed -ne 's%.*Test case:.*<b>\(.*\)</b>.*%\1%p'; then exit 1; else if grep "Failure Summary:" ${BUILD_DIR}/matlab_matfaust_test_output.html; then echo "all ctest passed but some unit tests failed (look the junit report!)"; exit 2; else echo "(None) all tests passed"; exit 0;fi;fi