Skip to content

Conversation

@TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented Aug 9, 2018

PR Summary

Add CI definition for VSTS for macOS

  • Add VSTS YAML for mac
  • Add a tag to skip tests which are not working in VSTS (I'm working on a fix for this issue.)
  • Add a function to upload log files during a test on VSTS

PR Checklist

@TravisEz13
Copy link
Member Author

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

Copy link
Contributor

@dantraMSFT dantraMSFT left a 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') {
Copy link
Contributor

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?

Copy link
Member Author

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.

Write-Host "##vso[task.setvariable variable=TMPDIR]$env:AGENT_TEMPDIRECTORY"
displayName: Set TMPDIR to AGENT_TEMPDIRECTORY
condition: succeededOrFailed()
Copy link
Member

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)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Copy link
Member

@daxian-dbw daxian-dbw left a 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.

Write-Host "##vso[artifact.upload containerfolder=testResults;artifactname=testResults]$_"
}
displayName: Publish Test Results
condition: succeeded()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe change to succeededorfailed()

Copy link
Member Author

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
Copy link
Member

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.

Copy link
Member Author

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)
Copy link
Member

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.

Copy link
Member Author

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

@TravisEz13
Copy link
Member Author

TravisEz13 commented Aug 10, 2018

@TravisEz13
Copy link
Member Author

@TravisEz13 TravisEz13 merged commit b3d0913 into PowerShell:master Aug 10, 2018
@TravisEz13 TravisEz13 deleted the vsts_macOS branch August 14, 2018 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants