Skip to content
Snippets Groups Projects
Commit 15dab419 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

Merge branch 'test-staging' into 'master'

Test staging

See merge request spc/tcv/tbx/gdat!12
parents 243105f3 9e087d85
Branches
Tags release-v4.3.1
1 merge request!12Test staging
Pipeline #19232 passed
......@@ -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:
......
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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment