Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
plotID_matlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_matlab
Commits
2ae148a2
Commit
2ae148a2
authored
3 years ago
by
M. Hock
Browse files
Options
Downloads
Patches
Plain Diff
Testing CI on Pipeline, this does run locally
parent
2c880fb9
No related branches found
No related tags found
2 merge requests
!30
Fix CI
,
!15
Merge "Dev/ci tests" - First working matlab script CI test with protocol output - on windows server
Pipeline
#564513
failed
3 years ago
Stage: Run
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CI_files/runner_test.m
+12
-5
12 additions, 5 deletions
CI_files/runner_test.m
CI_files/runtest.ps1
+17
-0
17 additions, 0 deletions
CI_files/runtest.ps1
with
29 additions
and
5 deletions
CI_files/runner_test.m
+
12
−
5
View file @
2ae148a2
function
[
result
]
=
runner_test
()
%RUNNER_TEST testing function to test, if the runner is set up properl
y
result
=
t
ru
e
;
exit
(
result
);
#
Test
1
tr
y
result
t
=
ru
nner_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
This diff is collapsed.
Click to expand it.
CI_files/runtest.ps1
0 → 100644
+
17
−
0
View file @
2ae148a2
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment