forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VSTS CI for Windows (PowerShell#7536)
- Add VSTS CI for Windows - Disable `Access-denied test for Get-Item C:\windows\appcompat\Programs\Install -ErrorAction Stop`, because the path does not always exist - PowerShell#7553 - Disable `Should give .sys file if the fullpath is specified with hidden and force parameter`, because pagefile.sys doesn't always exist and other files don't meet test's requirement. - PowerShell#7554 - Disable some `Test-Connection` tests for same reasons they failed on VSTS Linux - PowerShell#7555 - Disable `Test-FileCatalog should pass when catalog is in the same folder as files being tested`, because the CmdLet does not work in that scenario - Also, give details needed to investigate when the test fails - PowerShell#7556 - Update `appveyor.psm1` to work with VSTS - Update `HelpersRemoting.psm1` `New-RemoteSession` to work for CimSession (discovered an issue during the investigation) - Update `Test wildcard with drive relative directory path` to work when there are multiple drives - Disable on non-windows machines since the test is assuming drive letters - Update `New-CimSession` Tests to requireAdmin - Also, make sure session name is a string - Add functions to save and restore psoptions - update `.gitatttributes` so files clone like they do on appveyor
- Loading branch information
1 parent
9fa97ad
commit 40532d9
Showing
13 changed files
with
245 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: PR-$(System.PullRequest.PullRequestNumber)-$(Date:yyyyMMdd)$(Rev:.rr) | ||
queue: | ||
name: Hosted VS2017 | ||
parallel: 2 # Limit to two agents at a time | ||
matrix: | ||
UnelevatedPesterTests: | ||
Purpose: UnelevatedPesterTests | ||
ElevatedPesterTests_xUnit_Packaging: | ||
Purpose: ElevatedPesterTests_xUnit_Packaging | ||
|
||
variables: | ||
GIT_CONFIG_PARAMETERS: "'core.autocrlf=false'" | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
POWERSHELL_TELEMETRY_OPTOUT: 1 | ||
# Avoid expensive initialization of dotnet cli, see: http://donovanbrown.com/post/Stop-wasting-time-during-NET-Core-builds | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | ||
|
||
resources: | ||
- repo: self | ||
clean: true | ||
|
||
steps: | ||
- powershell: Write-Host "##vso[build.updatebuildnumber]$env:BUILD_SOURCEBRANCHNAME-$env:BUILD_SOURCEVERSION-$((get-date).ToString("yyyyMMddhhss"))" | ||
displayName: Set Build Name for Non-PR | ||
condition: ne(variables['Build.Reason'], 'PullRequest') | ||
|
||
- powershell: | | ||
git submodule update --init | ||
displayName: SubModule Init | ||
condition: succeededOrFailed() | ||
- powershell: | | ||
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 | ||
Import-Module .\tools\Appveyor.psm1 | ||
Invoke-AppveyorInstall | ||
displayName: Bootstrap | ||
condition: succeededOrFailed() | ||
- powershell: | | ||
Import-Module .\tools\Appveyor.psm1 | ||
Invoke-AppveyorBuild | ||
Save-PSOptions | ||
displayName: Build | ||
condition: succeeded() | ||
- powershell: | | ||
Import-Module .\tools\Appveyor.psm1 | ||
Restore-PSOptions | ||
Invoke-AppveyorTest -Purpose '$(Purpose)' | ||
displayName: Test | ||
condition: succeeded() | ||
- powershell: | | ||
Import-Module .\tools\Appveyor.psm1 | ||
Restore-PSOptions | ||
Invoke-AppveyorAfterTest | ||
displayName: AfterTest | ||
condition: succeededOrFailed() | ||
- powershell: | | ||
Import-Module .\tools\Appveyor.psm1 | ||
Restore-PSOptions | ||
Invoke-AppveyorFinish | ||
displayName: Finish | ||
condition: eq(variables['Purpose'], 'ElevatedPesterTests_xUnit_Packaging') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.