|
60 | 60 | inputs: |
61 | 61 | command: assert(strcmp(version('-release'),'2023a')) |
62 | 62 |
|
| 63 | + - job: test_install_with_toolcache_v${{ version }} |
| 64 | + condition: not(eq(${{ version }}, '0')) |
| 65 | + strategy: |
| 66 | + matrix: |
| 67 | + microsoft_hosted_linux: |
| 68 | + poolName: Azure Pipelines |
| 69 | + vmImage: ubuntu-22.04 |
| 70 | + microsoft_hosted_macos: |
| 71 | + poolName: Azure Pipelines |
| 72 | + vmImage: macOS-latest |
| 73 | + # Installing with toolcache on Windows cannot be tested on Microsoft-hosted agents |
| 74 | + # because InstallMATLAB sets up a symlinked toolcache for performance reasons and MPM |
| 75 | + # does not play well with symlinks on Windows. |
| 76 | + # microsoft_hosted_windows: |
| 77 | + # poolName: Azure Pipelines |
| 78 | + # vmImage: windows-latest |
| 79 | + pool: |
| 80 | + name: $(poolName) |
| 81 | + vmImage: $(vmImage) |
| 82 | + steps: |
| 83 | + - checkout: none |
| 84 | + - task: MathWorks.matlab-azure-devops-extension-dev.InstallMATLAB.InstallMATLAB@${{ version }} |
| 85 | + displayName: Install MATLAB |
| 86 | + inputs: |
| 87 | + release: R2023a |
| 88 | + - task: MathWorks.matlab-azure-devops-extension-dev.RunMATLABCommand.RunMATLABCommand@${{ version }} |
| 89 | + displayName: Check Image Processing Toolbox is NOT installed |
| 90 | + inputs: |
| 91 | + command: assert(~any(strcmp({ver().Name},'Image Processing Toolbox'))) |
| 92 | + - task: MathWorks.matlab-azure-devops-extension-dev.InstallMATLAB.InstallMATLAB@${{ version }} |
| 93 | + displayName: Install MATLAB no-ops on second run without additional products |
| 94 | + inputs: |
| 95 | + release: R2023a |
| 96 | + - task: MathWorks.matlab-azure-devops-extension-dev.RunMATLABCommand.RunMATLABCommand@${{ version }} |
| 97 | + displayName: Check Image Processing Toolbox is NOT installed |
| 98 | + inputs: |
| 99 | + command: assert(~any(strcmp({ver().Name},'Image Processing Toolbox'))) |
| 100 | + - task: MathWorks.matlab-azure-devops-extension-dev.InstallMATLAB.InstallMATLAB@${{ version }} |
| 101 | + displayName: Install MATLAB installs additional products |
| 102 | + inputs: |
| 103 | + release: R2023a |
| 104 | + products: Image_Processing_Toolbox |
| 105 | + - task: MathWorks.matlab-azure-devops-extension-dev.RunMATLABCommand.RunMATLABCommand@${{ version }} |
| 106 | + displayName: Check Image Processing Toolbox is installed |
| 107 | + inputs: |
| 108 | + command: assert(any(strcmp({ver().Name},'Image Processing Toolbox'))) |
| 109 | + |
63 | 110 | - job: test_install_latest_including_prerelease_v${{ version }} |
64 | 111 | condition: not(eq(${{ version }}, '0')) |
65 | 112 | strategy: |
|
0 commit comments