-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Skip JumpList on NanoServer and IoT #10164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
09c4138
d87e753
a30e223
5c85abe
04e8d47
a8509c9
60268ab
fd311f0
8a5550d
d643702
6a5ae4d
d1a0384
8b4593e
7040760
40a30c6
53b5e02
1326f78
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| parameters: | ||
| vmImage: 'win1803' | ||
| jobName: 'Nanoserver_Tests' | ||
| continueOnError: false | ||
|
|
||
| jobs: | ||
|
|
||
| - job: ${{ parameters.jobName }} | ||
| variables: | ||
| scriptName: ${{ parameters.scriptName }} | ||
|
|
||
| pool: | ||
| vmImage: ${{ parameters.vmImage }} | ||
|
|
||
| displayName: ${{ parameters.jobName }} | ||
|
|
||
| steps: | ||
| - script: | | ||
| set | ||
| displayName: Capture environment | ||
| condition: succeededOrFailed() | ||
|
|
||
| - task: DownloadBuildArtifacts@0 | ||
| displayName: 'Download build artifacts' | ||
| inputs: | ||
| downloadType: specific | ||
| itemPattern: | | ||
| build/**/* | ||
| downloadPath: '$(System.ArtifactsDirectory)' | ||
|
|
||
| - pwsh: | | ||
| Get-ChildItem "$(System.ArtifactsDirectory)\*" -Recurse | ||
| displayName: 'Capture artifacts directory' | ||
| continueOnError: true | ||
|
|
||
| - pwsh: | | ||
| Install-module pester -Scope CurrentUser -Force | ||
| displayName: 'Install Pester' | ||
| continueOnError: true | ||
|
|
||
| - pwsh: | | ||
| Import-Module .\tools\ci.psm1 | ||
| Restore-PSOptions -PSOptionsPath '$(System.ArtifactsDirectory)\build\psoptions.json' | ||
| $options = (Get-PSOptions) | ||
| $path = split-path -path $options.Output | ||
| Write-Verbose "Path: '$path'" -Verbose | ||
| $rootPath = split-Path -path $path | ||
| Expand-Archive -Path '$(System.ArtifactsDirectory)\build\build.zip' -DestinationPath $rootPath -Force | ||
| Invoke-Pester -Path ./test/nanoserver -OutputFormat NUnitXml -OutputFile ./test-nanoserver.xml | ||
| displayName: Test | ||
| condition: succeeded() | ||
|
|
||
| - task: PublishTestResults@2 | ||
| condition: succeededOrFailed() | ||
| displayName: Publish Nanoserver Test Results **\test*.xml | ||
| inputs: | ||
| testRunner: NUnit | ||
| testResultsFiles: '**\test*.xml' | ||
| testRunTitle: nanoserver | ||
| mergeTestResults: true | ||
| failTaskOnFailedTests: true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| Describe "Verify PowerShell Runs" { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. License header?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @daxian-dbw or @iSazonov can you add this?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Submitted #10171 |
||
| BeforeAll{ | ||
| $options = (Get-PSOptions) | ||
| $path = split-path -path $options.Output | ||
| Write-Verbose "Path: '$path'" -Verbose | ||
| $rootPath = split-Path -path $path | ||
| $mount = 'C:\powershell' | ||
| $container = 'mcr.microsoft.com/powershell:nanoserver-1803' | ||
| } | ||
|
|
||
| it "Verify Version " { | ||
| $version = docker run --rm -v "${rootPath}:${mount}" ${container} "${mount}\publish\pwsh" -NoLogo -NoProfile -Command '$PSVersionTable.PSVersion.ToString()' | ||
| $version | Should -match '^7\.' | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.