Skip to content

Commit 7cae7ec

Browse files
authored
Update ToolboxDistribution.yml
1 parent 7f02dbd commit 7cae7ec

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

AzureDevOps/ToolboxDistribution.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,19 @@ jobs:
1313
vmImage: $(imageName)
1414
steps:
1515
- task: InstallMATLAB@1
16+
17+
# Runs build to create MEX file and then run tests
18+
- task: RunMATLABBuild@1
19+
inputs:
20+
tasks: test
21+
env:
22+
MLM_LICENSE_TOKEN: $(MLM_LICENSE_TOKEN)
1623

17-
- script: |
18-
run-matlab-command matlabroot
24+
# - script: MATHWORKS_TOKEN=
25+
- script: MATLAB_CACHE_FOLDER=$(matlab-batch matlabroot)
26+
env:
27+
MLM_LICENSE_TOKEN: $(MLM_LICENSE_TOKEN)
28+
- script: echo $MATLAB_CACHE_FOLDER
1929

2030
- task: Cache@2
2131
inputs:
@@ -25,13 +35,6 @@ jobs:
2535
path: $(MATLAB_CACHE_FOLDER)
2636
displayName: Cache MATLAB
2737

28-
# Runs build to create MEX file and then run tests
29-
- task: RunMATLABBuild@1
30-
inputs:
31-
tasks: test
32-
env:
33-
MLM_LICENSE_TOKEN: $(MLM_LICENSE_TOKEN)
34-
3538
# Uploads the test results
3639
- publish: 'test-results/results.xml'
3740
artifact: 'test-results-$(imageName)'

0 commit comments

Comments
 (0)