mirror of
https://github.com/actions/runner-images.git
synced 2026-01-08 11:30:49 +08:00
Merge pull request #1574 from andy-mishechkin/v-andmis/Add_Microsoft_VS_Installer_Projects
Deploy script and tests for VSIX (Visual Studio extensions)
This commit is contained in:
@@ -182,10 +182,14 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "powershell",
|
"type": "powershell",
|
||||||
|
"environment_vars":[
|
||||||
|
"TOOLSET_JSON_PATH={{user `toolset_json_path`}}"
|
||||||
|
],
|
||||||
"scripts":[
|
"scripts":[
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Nuget.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Nuget.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Wix.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Wix.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-WDK.ps1"
|
"{{ template_dir }}/scripts/Installers/Install-WDK.ps1",
|
||||||
|
"{{ template_dir }}/scripts/Installers/Install-Vsix.ps1"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -189,11 +189,14 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "powershell",
|
"type": "powershell",
|
||||||
|
"environment_vars":[
|
||||||
|
"TOOLSET_JSON_PATH={{user `toolset_json_path`}}"
|
||||||
|
],
|
||||||
"scripts":[
|
"scripts":[
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Nuget.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Nuget.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Wix.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Wix.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Windows2019/Install-SSDTExtensions.ps1",
|
|
||||||
"{{ template_dir }}/scripts/Installers/Install-WDK.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-WDK.ps1",
|
||||||
|
"{{ template_dir }}/scripts/Installers/Install-Vsix.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-AzureCli.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-AzureCli.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-AzureDevOpsCli.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-AzureDevOpsCli.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-AzCopy.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-AzCopy.ps1",
|
||||||
|
|||||||
20
images/win/scripts/Installers/Install-Vsix.ps1
Normal file
20
images/win/scripts/Installers/Install-Vsix.ps1
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
###################################################################################
|
||||||
|
## File: Install-Vsix.ps1
|
||||||
|
## Desc: Install the Visual Studio Extensions from toolset.json
|
||||||
|
###################################################################################
|
||||||
|
|
||||||
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
||||||
|
$toolset = Get-ToolsetContent
|
||||||
|
$vsixPackagesList = $toolset.visualStudio.vsix
|
||||||
|
if (-not $vsixPackagesList) {
|
||||||
|
Write-Host "No extensions to install"
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
$vsVersion = $toolset.visualStudio.Version
|
||||||
|
$vsixPackagesList | ForEach-Object {
|
||||||
|
Install-VsixExtension -Url $_.url -Name $_.name -VSversion $vsVersion
|
||||||
|
}
|
||||||
|
|
||||||
|
Invoke-PesterTests -TestFile "Vsix"
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
###################################################################################
|
|
||||||
## File: Install-SSDTExtensions.ps1
|
|
||||||
## Desc: Install the extensions previously known as SSDT package
|
|
||||||
###################################################################################
|
|
||||||
|
|
||||||
Import-Module -Name ImageHelpers -Force
|
|
||||||
|
|
||||||
Install-VsixExtension -Url 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ProBITools/vsextensions/MicrosoftAnalysisServicesModelingProjects/2.9.5/vspackage' -Name 'Microsoft.DataTools.AnalysisServices.vsix' -VSversion "2019"
|
|
||||||
Install-VsixExtension -Url 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/SSIS/vsextensions/SqlServerIntegrationServicesProjects/3.4/vspackage' -Name 'Microsoft.DataTools.IntegrationServices.exe' -VSversion "2019"
|
|
||||||
Install-VsixExtension -Url 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ProBITools/vsextensions/MicrosoftReportProjectsforVisualStudio/2.6.3/vspackage' -Name 'Microsoft.DataTools.ReportingServices.vsix' -VSversion "2019"
|
|
||||||
|
|
||||||
Invoke-PesterTests -TestFile "SSDTExtensions"
|
|
||||||
13
images/win/scripts/Tests/Vsix.Tests.ps1
Normal file
13
images/win/scripts/Tests/Vsix.Tests.ps1
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Describe "Vsix" {
|
||||||
|
$toolset = Get-ToolsetContent
|
||||||
|
$requiredVsixs = $toolset.visualStudio.vsix
|
||||||
|
|
||||||
|
$allPackages = (Get-VSSetupInstance | Select-VsSetupInstance -Product *).Packages
|
||||||
|
$testCases = $requiredVsixs | ForEach-Object { @{ VsixId = $_.Id; AllPackages = $allPackages }}
|
||||||
|
if ($testCases.Count -gt 0) {
|
||||||
|
It "Extension <VsixId>" -TestCases $testCases {
|
||||||
|
$objVsix = $AllPackages | Where-Object { $_.id -eq $VsixId }
|
||||||
|
$objVsix | Should -Not -BeNullOrEmpty
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -227,6 +227,8 @@
|
|||||||
"Microsoft.VisualStudio.Component.VC.Runtimes.ARM64.Spectre",
|
"Microsoft.VisualStudio.Component.VC.Runtimes.ARM64.Spectre",
|
||||||
"Microsoft.VisualStudio.Component.Workflow",
|
"Microsoft.VisualStudio.Component.Workflow",
|
||||||
"Microsoft.VisualStudio.Workload.Office"
|
"Microsoft.VisualStudio.Workload.Office"
|
||||||
|
],
|
||||||
|
"vsix": [
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -259,6 +259,28 @@
|
|||||||
"Microsoft.VisualStudio.Workload.VisualStudioExtension",
|
"Microsoft.VisualStudio.Workload.VisualStudioExtension",
|
||||||
"Component.MDD.Linux",
|
"Component.MDD.Linux",
|
||||||
"Component.MDD.Linux.GCC.arm"
|
"Component.MDD.Linux.GCC.arm"
|
||||||
|
],
|
||||||
|
"vsix": [
|
||||||
|
{
|
||||||
|
"name": "Microsoft.DataTools.AnalysisServices.vsix",
|
||||||
|
"url": "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ProBITools/vsextensions/MicrosoftAnalysisServicesModelingProjects/2.9.5/vspackage",
|
||||||
|
"id": "04a86fc2-dbd5-4222-848e-911638e487fe"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Microsoft.DataTools.IntegrationServices.exe",
|
||||||
|
"url": "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/SSIS/vsextensions/SqlServerIntegrationServicesProjects/3.4/vspackage",
|
||||||
|
"id": "851E7A09-7B2B-4F06-A15D-BABFCB26B970"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Microsoft.DataTools.ReportingServices.vsix",
|
||||||
|
"url": "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ProBITools/vsextensions/MicrosoftReportProjectsforVisualStudio/2.6.3/vspackage",
|
||||||
|
"id": "717ad572-c4b7-435c-c166-c2969777f718"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Microsoft.VisualStudio.Installer.Projects.vsix",
|
||||||
|
"url": "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/VisualStudioClient/vsextensions/MicrosoftVisualStudio2017InstallerProjects/latest/vspackage",
|
||||||
|
"id": "VSInstallerProjects"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user