Skip to content
Snippets Groups Projects
Commit 72f72a1d authored by Hock, Martin's avatar Hock, Martin
Browse files

Merge branch 'dev/CI-Tests' into 'development'

First working matlab script CI test with protocol output - runner on windows server. No compatibility tested to linux

See merge request !15
parents 2c880fb9 77265eab
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 #565284 passed
......@@ -7,4 +7,3 @@ Test Code:
- matlab
script:
- ./CI_files/runtest.ps1
- cat log2.txt
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
# 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