Skip to content

Commit 175cb62

Browse files
committed
Updated .yml
1 parent 2dfe560 commit 175cb62

88 files changed

Lines changed: 321 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ jobs:
4040
uses: matlab-actions/setup-matlab@v2
4141
with:
4242
release: ${{ matrix.MATLABVersion }}
43-
Statistics_and_Machine_Learning_Toolbox
43+
products: >
44+
Statistics_and_Machine_Learning_Toolbox
4445
# List required products above in the format shown (and uncomment them)
4546
# List of product strings:
4647
# Simulink

.gitlab-ci.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
stages:
2+
# Set up two testing paths
3+
- setup
4+
- test
5+
- deploy
6+
- release
7+
8+
.setup_matlab_windows: &setup_matlab_windows
9+
- $env:MLM_LICENSE_TOKEN="$LICENSEOWNER|$LICENSELABEL|$LICENSETOKEN" # Set the batch token license
10+
- Set-Alias -Name matlab -Value "D:\MATLAB\$VERSION\bin\matlab-batch"
11+
12+
setup-job:
13+
tags:
14+
- training
15+
- windows
16+
stage: setup
17+
script:
18+
- cd ..
19+
- if (test-path utilities) { rm -r -force utilities }
20+
- git clone https://insidelabs-git.mathworks.com/modular-curriculum-content/utilities.git
21+
- cd $CI_PROJECT_NAME
22+
allow_failure: false
23+
24+
smoke-test:
25+
parallel:
26+
matrix:
27+
- VERSION: [R2024b,R2025a,R2025b]
28+
tags:
29+
- training
30+
- windows
31+
stage: test
32+
script:
33+
- *setup_matlab_windows
34+
- matlab "openProject(pwd);RunAllTests"
35+
when: always
36+
allow_failure: true
37+
artifacts:
38+
name: "$VERSION"
39+
paths:
40+
- public/*
41+
when: always
42+
43+
pages:
44+
variables:
45+
VERSION: "R2025a"
46+
tags:
47+
- training
48+
- windows
49+
stage: deploy
50+
script:
51+
- *setup_matlab_windows
52+
- matlab "openProject(pwd);PostSmokeTest;"
53+
artifacts:
54+
paths:
55+
- public
56+
57+
file-test:
58+
variables:
59+
VERSION: "R2025a"
60+
tags:
61+
- training
62+
- windows
63+
stage: release
64+
script:
65+
- *setup_matlab_windows
66+
- matlab "proj = openProject(pwd);
67+
addpath(proj.RootFolder+'/InternalFiles/Tests/CI');
68+
results = runtests('OpenCloseFileTest.m');
69+
disp(table(results)); assertSuccess(results);"
70+
rules:
71+
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
72+
when: always
73+
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
74+
when: manual
75+
allow_failure: true
76+
77+
release-testing:
78+
variables:
79+
VERSION: "R2025a"
80+
tags:
81+
- training
82+
- windows
83+
stage: release
84+
script:
85+
- matlab "proj = openProject(pwd);
86+
cd ..;
87+
addpath(genpath(fullfile('utilities','TestingResources')));
88+
addpath(genpath(fullfile('utilities','Tools')));
89+
runCMTests"
90+
rules:
91+
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
92+
when: always
93+
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
94+
when: manual
95+
allow_failure: true
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Info Ref="InternalFiles/RequiredFunctions/StartUpFcn" Type="Relative"/>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Info location="dcaeb9d9-a896-40ff-9cf5-9d87d23c1166" type="Reference"/>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Info/>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Info location="1" type="DIR_SIGNIFIER"/>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Info>
3+
<Category UUID="FileClassCategory">
4+
<Label UUID="design"/>
5+
</Category>
6+
</Info>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Info location="CommonIcon.mlx" type="File"/>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Info/>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Info location="FEX-Desc-Prob-Icon.jpg" type="File"/>

0 commit comments

Comments
 (0)