Merge main into install-codeql-bundle.

This commit is contained in:
Chris Gavin
2020-09-19 13:52:56 +01:00
124 changed files with 1928 additions and 999 deletions

View File

@@ -97,8 +97,8 @@ foreach($pypyTool in $pypyTools)
foreach($pypyVersion in $pypyTool.versions)
{
# Query latest PyPy version
$filter = '{0}{1}-*-{2}.zip' -f $pypyTool.name, $pypyVersion, $pypyTool.platform
$latestMajorPyPyVersion = $pypyVersions | Where-Object {$_.name -like $filter} | Select-Object -First 1
$filter = '{0}{1}-v\d+\.\d+\.\d+-{2}.zip' -f $pypyTool.name, $pypyVersion, $pypyTool.platform
$latestMajorPyPyVersion = $pypyVersions | Where-Object {$_.name -match $filter} | Select-Object -First 1
if ($latestMajorPyPyVersion)
{

View 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"

View File

@@ -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"

View 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
}
}
}