Skip to content
Snippets Groups Projects
Commit 2ae148a2 authored by M. Hock's avatar M. Hock
Browse files

Testing CI on Pipeline, this does run locally

parent 2c880fb9
No related branches found
No related tags found
2 merge requests!30Fix CI,!15Merge "Dev/ci tests" - First working matlab script CI test with protocol output - on windows server
Pipeline #564513 failed
function [result] = runner_test()
%RUNNER_TEST testing function to test, if the runner is set up properly
result = true;
exit(result);
#Test 1
try
resultt = runner_testing
catch
warning("Error in Test1");
end
exit(resultt)
function [result] = runner_testing()
%RUNNER_TESTING testing function to test, if the runner is set up properly
result = true;
disp(pwd);
result = version; disp(result); result = isempty(result); disp(result); result = int8(result); disp(result); pause(5);
end
\ No newline at end of file
# runtest.ps1
$LOGFILE='CI_log.txt'
$wd = pwd;
$LOGFILE = $("$wd" + "\" + "$LOGFILE")
$CIfolder = "$wd" + "\" + "CI_files\"
# $MFILE='"C:\git\NFDI4ing\plot_ID_matlab\CI_files\runner_test.m"'
$arguments = "-nodesktop", "-nosplash","-minimize","-wait","-sd", "$CIfolder", "-logfile", "$LOGFILE","-batch","runner_test"
$Returnvalue = & 'C:\Program Files\MATLAB\R2021b\bin\matlab.exe' $arguments
#$CODE = $?
# Returnvalue doesnt get anything useful from matlab
# Write-Output($Returnvalue)
Write-Output(Get-Content($LOGFILE))
exit $CODE
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment