Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gdat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
gdat
Commits
15dab419
Commit
15dab419
authored
5 years ago
by
Olivier Sauter
Browse files
Options
Downloads
Plain Diff
Merge branch 'test-staging' into 'master'
Test staging See merge request spc/tcv/tbx/gdat!12
parents
243105f3
9e087d85
Branches
Branches containing commit
Tags
release-v4.3.1
Tags containing commit
1 merge request
!12
Test staging
Pipeline
#19232
passed
5 years ago
Stage: test
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+41
-15
41 additions, 15 deletions
.gitlab-ci.yml
matlab/tests_matlab.m
+8
-4
8 additions, 4 deletions
matlab/tests_matlab.m
with
49 additions
and
19 deletions
.gitlab-ci.yml
+
41
−
15
View file @
15dab419
...
...
@@ -3,31 +3,24 @@ include:
-
project
:
'
spc/tcv/tbx/git-tools-spc'
file
:
'
gitlab-ci-tbx-template.yml'
# no build for gdat, so don't define jobs for this phase
variables
:
TBXFOLDER
:
matlab
MATVER
:
last
# no build for gdat, so don't define jobs for this phase
test-matlab850
:
extends
:
.test-template
before_script
:
-
cd matlab
variables
:
MATLABCMD
:
matlab850
TESTCASE
:
basic-tcv
test-matlab
:
extends
:
.test-template
before_script
:
-
cd matlab
variables
:
MATLABCMD
:
matlab
TESTCASE
:
basic-tcv
# deactivate others for now pending full deployment scripts
.test-deployed-matlab850
:
extends
:
.test-deployed-template
variables
:
MATLABCMD
:
matlab850
# Tests with 'all' option deactivated for now since not workin
.test-matlab850-all
:
extends
:
test-matlab850
variables
:
...
...
@@ -36,12 +29,45 @@ test-matlab:
-
schedules
-
web
# Staging, testing and deployment for releases
pre-deployment-staging
:
extends
:
.staging-template
# Staging tests
test-staging-920
:
extends
:
.test-staging-template
variables
:
MATLABCMD
:
matlab920
test-staging-900
:
extends
:
.test-staging-template
variables
:
MATLABCMD
:
matlab900
test-staging-850
:
extends
:
.test-staging-template
variables
:
MATLABCMD
:
matlab850
test-staging-830
:
extends
:
.test-staging-template
variables
:
MATLABCMD
:
matlab830
test-staging-800
:
extends
:
.test-staging-template
variables
:
MATLABCMD
:
matlab800
# pre-deployment
pre-deployment-checks
:
extends
:
.pre-deployment-checks-template
# deploy
deploy
:
extends
:
.deploy-to-lac-template
variables
:
MATVER
:
last
TBXFOLDER
:
matlab
# test post-deploy
test-post-deploy-matlab
:
extends
:
.test-post-deploy-template
variables
:
...
...
This diff is collapsed.
Click to expand it.
matlab/tests_matlab.m
+
8
−
4
View file @
15dab419
function
tests_matlab
(
test_case
)
% function to call tests from test_script.sh
try
fprintf
(
'\n Running test file: %s\n'
,
mfilename
(
'fullpath'
));
fprintf
(
' Time: %s\n'
,
datestr
(
now
));
passed
=
run_gdat_tests
(
test_case
);
% add a call to your test script here, with optional test_case input
if
verLessThan
(
'matlab'
,
'8.5.0'
)
disp
(
'gdat tests do not work for matlab version <8.5.0, skipping tests'
);
passed
=
true
;
else
fprintf
(
'\n Running test file: %s\n'
,
mfilename
(
'fullpath'
));
fprintf
(
' Time: %s\n'
,
datestr
(
now
));
passed
=
run_gdat_tests
(
test_case
);
% add a call to your test script here, with optional test_case input
end
exit_code
=
int32
(
~
passed
);
% convert to bash shell convention
catch
ME
disp
(
getReport
(
ME
))
...
...
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