Skip to content

Commit d6ec7c2

Browse files
Update doc to match editor reviewed doc (#69)
1 parent 838d77d commit d6ec7c2

8 files changed

+101
-86
lines changed

src/@orb.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
description: >
4-
Run MATLAB and Simulink as part of your build pipeline.
4+
Run MATLAB as part of your build pipeline.
55
66
display:
77
source_url: https://github.com/mathworks/matlab-circleci-orb

src/commands/install.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
description: >
2-
Install a specific version of MATLAB. (If you use this command to install transformation products,
3-
such as MATLAB Coder and MATLAB Compiler, the command does not automatically license such products for you.)
2+
Install a specific release of MATLAB. If you do not specify a release, the command installs the latest
3+
release of MATLAB. As part of the installation process, the command prepends MATLAB to the `PATH` system
4+
environment variable.
45
56
parameters:
67
products:
78
description: >
89
Products to install in addition to MATLAB, specified as a list of product names separated by
910
spaces. You can specify this parameter to install most MathWorks products and support packages. The
10-
command uses MATLAB Package Manager (`mpm`) to install products. For a list of supported
11-
products and their correctly formatted names, see
11+
command uses MATLAB Package Manager (`mpm`) to install products. If you use this parameter to install
12+
transformation products, such as MATLAB Coder and MATLAB Compiler, the command does not automatically
13+
license such products for you. For a list of supported products and their correctly formatted names, see
1214
https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/MPM.md#product-installation-options.
1315
type: string
1416
default: ''
1517
release:
1618
description: >
17-
MATLAB release to install. You can specify R2021a or a later release. By default, the value of `release`
18-
is `latest`. If you do not specify `release`, the command installs the latest release of MATLAB.
19+
MATLAB release to install. You can specify R2021a or a later release. If you do not specify `release`,
20+
the command installs the latest release of MATLAB.
1921
type: string
2022
default: 'latest'
2123
no-output-timeout:

src/commands/run-build.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
description: >
2-
Run builds using the MATLAB build tool. Use this command to run the tasks in the plan returned
3-
by a file named buildfile.m in the root of your repository. To use the run-build command, you
4-
need MATLAB R2022b or a later release.
2+
Run a build using the MATLAB build tool. Use this command to run the tasks specified in a file
3+
named `buildfile.m` in the root of your repository. To use the `run-build` command, you need MATLAB
4+
R2022b or a later release.
55
66
parameters:
77
tasks:
88
description: >
9-
Space-separated list of tasks to run. If not specified, the command runs the default tasks
10-
in the plan returned by buildfile.m as well as all the tasks on which they depend.
9+
Tasks to run, specified as a list of task names separated by spaces. If a task accepts arguments,
10+
enclose them in parentheses. If you do not specify `tasks`, the command runs the default tasks in
11+
`buildfile.m` as well as all the tasks on which they depend. MATLAB exits with exit code 0 if the
12+
tasks run without error. Otherwise, MATLAB terminates with a nonzero exit code, which causes the
13+
command to fail.
1114
type: string
1215
default: ""
1316
build-options:
@@ -20,8 +23,9 @@ parameters:
2023
default: ""
2124
startup-options:
2225
description: >
23-
MATLAB startup options. If you specify more than one option, use a space to
24-
separate the options.
26+
MATLAB startup options, specified as a list of options separated by spaces. For more
27+
information about startup options, see
28+
https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html.
2529
type: string
2630
default: ""
2731
no-output-timeout:

src/commands/run-command.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
description: >
2-
Execute a MATLAB script, function, or statement. MATLAB exits with exit code 0 if the specified
3-
script, function, or statement executes successfully without error. Otherwise, MATLAB terminates
4-
with a nonzero exit code, which causes the build to fail. You can use the assert or error
5-
functions in the command to ensure that builds fail when necessary. When you use this command,
6-
all of the required files must be on the MATLAB search path.
2+
Run MATLAB scripts, functions, and statements. When you use this command, all of the required
3+
files must be on the MATLAB search path.
74
85
parameters:
96
command:
107
description: >
11-
Script, function, or statement to execute. If the value of command is the name of a MATLAB
12-
script or function, do not specify the file extension. If you specify more than one MATLAB
13-
command, use a comma or semicolon to separate the commands.
8+
Script, function, or statement to execute. If the value of `command` is the name of a MATLAB
9+
script or function, do not specify the file extension. If you specify more than one script,
10+
function, or statement, use a comma or semicolon to separate them. MATLAB exits with exit
11+
code 0 if the specified script, function, or statement executes successfully without error.
12+
Otherwise, MATLAB terminates with a nonzero exit code, which causes the command to fail.
13+
To fail the command in certain conditions, use the `assert` or `error` function.
1414
type: string
1515
startup-options:
1616
description: >
17-
MATLAB startup options. If you specify more than one option, use a space to
18-
separate the options.
17+
MATLAB startup options, specified as a list of options separated by spaces. For more
18+
information about startup options, see
19+
https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html.
1920
type: string
2021
default: ""
2122
no-output-timeout:

src/commands/run-tests.yml

+64-56
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,113 @@
11
description: >
2-
Run all tests in a MATLAB project and generate test artifacts. MATLAB includes any files in your
3-
project that have a Test label. If your pipeline does not leverage a MATLAB project, then MATLAB
4-
includes all tests in the the root of your repository including its subfolders.
2+
Run MATLAB and Simulink tests and generate artifacts. By default, the command includes any files
3+
in your project that have a `Test` label. If your pipeline does not use a MATLAB project, or if
4+
it uses a MATLAB release before R2019a, then the command includes all tests in the root of your
5+
repository and in any of its subfolders. The command fails if any of the included tests fails.
56
67
parameters:
7-
test-results-junit:
8+
source-folder:
89
description: >
9-
Path to write test results report in JUnit XML format.
10+
Location of the folder containing source code, relative to the project root folder. The
11+
specified folder and its subfolders are added to the top of the MATLAB search path. If
12+
you specify `source-folder` and then generate a coverage report, MATLAB uses only the source
13+
code in the specified folder and its subfolders to generate the report. You can specify multiple
14+
folders using a colon-separated or semicolon-separated list.
1015
type: string
1116
default: ''
12-
code-coverage-cobertura:
17+
select-by-folder:
1318
description: >
14-
Path to write code coverage report in Cobertura XML format.
19+
Location of the folder used to select test suite elements, relative to the project root folder.
20+
To create a test suite, MATLAB uses only the tests in the specified folder and its subfolders.
21+
You can specify multiple folders using a colon-separated or semicolon-separated list.
1522
type: string
1623
default: ''
17-
code-coverage-html:
24+
select-by-tag:
1825
description: >
19-
Path to write code coverage report in HTML format.
26+
Test tag used to select test suite elements. To create a test suite, MATLAB uses only the test elements
27+
with the specified tag.
2028
type: string
2129
default: ''
22-
source-folder:
30+
strict:
2331
description: >
24-
Location of the folder containing source code, relative to the project root folder. The
25-
specified folder and its subfolders are added to the top of the MATLAB search path. To
26-
generate a code coverage report, MATLAB uses only the source code in the specified folder and
27-
its subfolders. You can specify multiple folders using a colon-separated or a
28-
semicolon-separated list.
29-
type: string
30-
default: ''
31-
select-by-folder:
32+
Option to apply strict checks when running tests, specified as `false` or `true`. If you specify
33+
a value of `true`, the command generates a qualification failure whenever a test issues a warning.
34+
type: boolean
35+
default: false
36+
use-parallel:
3237
description: >
33-
Location of the folder used to select test suite elements, relative to the project root folder.
34-
To generate a test suite, MATLAB uses only the tests in the specified folder and its subfolders.
35-
You can specify multiple folders using a colon-separated or a semicolon-separated list.
38+
Option to run tests in parallel, specified as `false` or `true`. If the test runner configuration
39+
is suited for parallelization, you can specify a value of `true` to run tests in parallel. This
40+
parameter requires a Parallel Computing Toolbox license.
41+
type: boolean
42+
default: false
43+
output-detail:
44+
description: >
45+
Amount of event detail displayed for the test run, specified as `none`, `terse`, `concise`, `detailed`,
46+
or `verbose`. By default, the command displays failing and logged events at the `detailed` level and test
47+
run progress at the `concise` level.
3648
type: string
3749
default: ''
38-
select-by-tag:
50+
logging-level:
3951
description: >
40-
Test tag used to select test suite elements. To generate a test suite, MATLAB uses only the test elements
41-
with the specified tag.
52+
Maximum verbosity level for logged diagnostics included for the test run, specified as `none`, `terse`,
53+
`concise`, `detailed`, or `verbose`. By default, the command includes diagnostics logged at the `terse` level.
4254
type: string
4355
default: ''
44-
model-coverage-cobertura:
56+
test-results-pdf:
4557
description: >
46-
Path to write model coverage report in Cobertura XML format.
58+
Path to write the test results in PDF format. On macOS platforms, this parameter is supported in MATLAB R2020b and later.
4759
type: string
4860
default: ''
49-
model-coverage-html:
61+
test-results-junit:
5062
description: >
51-
Path to write model coverage report in HTML format.
63+
Path to write the test results in JUnit-style XML format.
5264
type: string
5365
default: ''
5466
test-results-simulink-test:
5567
description: >
56-
Path to export Simulink Test Manager results in MLDATX format.
68+
Path to export Simulink Test Manager results in MLDATX format. This parameter requires a Simulink Test license, and
69+
is supported in MATLAB R2019a and later.
5770
type: string
5871
default: ''
5972
test-results-html:
6073
description: >
61-
Path to write test results report in HTML format.
74+
Path to write the test results in HTML format.
6275
type: string
6376
default: ''
64-
test-results-pdf:
77+
code-coverage-cobertura:
6578
description: >
66-
Path to write test results report in PDF format.
79+
Path to write the code coverage results in Cobertura XML format.
6780
type: string
6881
default: ''
69-
no-output-timeout:
82+
code-coverage-html:
7083
description: >
71-
Elapsed time the tests can run without output. The string is a decimal with unit suffix,
72-
such as “20m”, “1.25h”, “5s”. The default is 10 minutes and the maximum is governed by the
73-
maximum time a job is allowed to run.
84+
Path to write the code coverage results in HTML format.
7485
type: string
75-
default: 10m
76-
strict:
77-
description: >
78-
Whether to apply strict checks when running the tests. For example, the command generates a
79-
qualification failure if a test issues a warning.
80-
type: boolean
81-
default: false
82-
use-parallel:
83-
description: >
84-
Whether to run tests in parallel (requires Parallel Computing Toolbox). This feature might
85-
not be compatible with certain arguments, in which case, tests run in serial regardless of
86-
the specified value.
87-
type: boolean
88-
default: false
89-
output-detail:
86+
default: ''
87+
model-coverage-cobertura:
9088
description: >
91-
Display level for event details produced by the test run, specified as 'None', 'Terse', 'Concise', 'Detailed', or 'Verbose'.
89+
Path to write the model coverage results in Cobertura XML format. This parameter requires a Simulink Coverage license,
90+
and is supported in MATLAB R2018b and later.
9291
type: string
9392
default: ''
94-
logging-level:
93+
model-coverage-html:
9594
description: >
96-
Maximum verbosity level for logged diagnostics included for the test run, specified as 'None', 'Terse', 'Concise', 'Detailed', or 'Verbose'.
95+
Path to write the model coverage results in HTML format. This parameter requires a Simulink Coverage license, and is
96+
supported in MATLAB R2018b and later.
9797
type: string
9898
default: ''
99+
no-output-timeout:
100+
description: >
101+
Elapsed time the tests can run without output. The string is a decimal with unit suffix,
102+
such as “20m”, “1.25h”, “5s”. The default is 10 minutes and the maximum is governed by the
103+
maximum time a job is allowed to run.
104+
type: string
105+
default: 10m
99106
startup-options:
100107
description: >
101-
MATLAB startup options. If you specify more than one option, use a space to
102-
separate the options.
108+
MATLAB startup options, specified as a list of options separated by spaces. For more
109+
information about startup options, see
110+
https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html.
103111
type: string
104112
default: ""
105113

src/examples/run-build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
description: >
2-
Run a MATLAB build for your project.
2+
Run a build using the MATLAB build tool.
33
44
usage:
55
version: 2.1
@@ -8,7 +8,7 @@ usage:
88
jobs:
99
build:
1010
machine:
11-
image: ubuntu-2204:2022.07.1
11+
image: ubuntu-2204:2024.01.1
1212
steps:
1313
- checkout
1414
- matlab/install

src/examples/run-custom-script.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
description: >
2-
Run a custom MATLAB script in your project.
2+
Run a MATLAB script in your project.
33
44
usage:
55
version: 2.1
@@ -8,7 +8,7 @@ usage:
88
jobs:
99
build:
1010
machine:
11-
image: ubuntu-2204:2022.07.1
11+
image: ubuntu-2204:2024.01.1
1212
steps:
1313
- checkout
1414
- matlab/install

src/examples/run-tests-with-report.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
description: >
2-
Run all tests in your project and produce a test results report.
2+
Run all tests in your project and produce test results in JUnit-style XML format.
33
44
usage:
55
version: 2.1
@@ -8,7 +8,7 @@ usage:
88
jobs:
99
build:
1010
machine:
11-
image: ubuntu-2204:2022.07.1
11+
image: ubuntu-2204:2024.01.1
1212
steps:
1313
- checkout
1414
# Install Simulink and Simulink Test in addition to MATLAB

0 commit comments

Comments
 (0)