-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add CI definition for VSTS for macOS #7490
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
Conversation
|
There is a bug in VSTS when you first add the definition. The run from my branch is here: https://powershell.visualstudio.com/PowerShell/_build%2Fresults?buildId=258&_a=summary |
Also, to send log files to VSTS on failure
dantraMSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can sign off on the macos tests and the PSSyslog.psm1 changes.
| } | ||
|
|
||
| Describe 'Basic os_log tests on MacOS' -Tag @('Feature','RequireSudoOnUnix') { | ||
| Describe 'Basic os_log tests on MacOS' -Tag @('Feature','RequireSudoOnUnix','SkipInVsts') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you add a comment about why SkipInVsts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should not be needed, I will remove.
vsts-macos-ci.yml
Outdated
| Write-Host "##vso[task.setvariable variable=TMPDIR]$env:AGENT_TEMPDIRECTORY" | ||
| displayName: Set TMPDIR to AGENT_TEMPDIRECTORY | ||
| condition: succeededOrFailed() | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing spaces at line 27 (reported by CodeFactor)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
daxian-dbw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with a few minor comments.
vsts-macos-ci.yml
Outdated
| Write-Host "##vso[artifact.upload containerfolder=testResults;artifactname=testResults]$_" | ||
| } | ||
| displayName: Publish Test Results | ||
| condition: succeeded() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe change to succeededorfailed()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
| displayName: Publish Test Results | ||
| condition: succeeded() | ||
| - task: PublishTestResults@2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some comments about this one and the one above would be great.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added comments
| @@ -0,0 +1,82 @@ | |||
| name: PR-$(System.PullRequest.PullRequestNumber)-$(Date:yyyyMMdd)$(Rev:.rr) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to move this file in a folder, like vsts-ci, so we don't have more and more files under the repository root.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to a folder .vsts-ci
PR Summary
Add CI definition for VSTS for macOS
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests