★ wanayoo — archive 1999 https://github.com/PowerShell/PSScriptAnalyzer/pull/1071Nouvelle recherche | Portail wanayoo
Skip to content
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

WIP Set up CI with Azure Pipelines #1071

Closed
wants to merge 2 commits into from
Closed

Conversation

@bergmeister
Copy link
Collaborator

bergmeister commented Sep 15, 2018 •

PR Summary

Works for Windows (Hosted VS 2017) and macOS agent. Linux needs some work

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets. Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
    • Use the present tense and imperative mood when describing your changes
  • Summarized changes
  • [NA] User facing documentation needed
  • Change is not breaking
  • [NA] Make sure you've added a new test if existing tests do not effectively test the code changed
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready
@bergmeister bergmeister changed the title Set up CI with Azure Pipelines [WIP] Set up CI with Azure Pipelines Sep 15, 2018
@bergmeister bergmeister changed the title [WIP] Set up CI with Azure Pipelines WIP Set up CI with Azure Pipelines Sep 15, 2018
@bergmeister
Copy link
Collaborator Author

bergmeister commented Sep 15, 2018 •

@TravisEz13 @JamesWTruher I cannot create a new build definition in the PSScriptAnalyzer Azure pipelines instance here because the required service connection to the GitHub repo under my account has insufficient privileges (I am a build administrator and can create/edit Azure pipelines otherwise). Could you please create a dumy build pipeline and setup the GitHub service connection as a one-off please? Thanks
image

@@ -0,0 +1,24 @@
steps:

This comment has been minimized.

@TravisEz13

TravisEz13 Sep 16, 2018 Member

Can you include what queue it should run it?
I want as little as possible in Azure Pipelines

This comment has been minimized.

@TravisEz13

TravisEz13 Sep 16, 2018 Member

See the definitions in PowerShell/PowerShell for reference.

This comment has been minimized.

@bergmeister

bergmeister Sep 17, 2018 Author Collaborator

The idea would be to have only 1 YAML file that works for different build definition, where only the queue (Windows/Linux/Mac) is different and set in UI of the the build definition.

This comment has been minimized.

@TravisEz13

TravisEz13 Sep 17, 2018 Member

You can use a matrix and run it 3 time in different queues if that is the intent.

testRunner: NUnit
testResultsFiles: TestResults.xml
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: PSScriptAnalyzer'

This comment has been minimized.

@TravisEz13

TravisEz13 Sep 16, 2018 Member

This currently won't work in an PR (I have an issue open to add this feature.)

See an example here how to skip this: https://github.com/PowerShell/PowerShell/blob/f90fa8afc1d96603811f67fe95a6c3fbc74497c0/.vsts-ci/mac.yml#L60

This comment has been minimized.

@bergmeister

bergmeister Sep 17, 2018 Author Collaborator

Ok, thanks, I did not know that. Is there a tracking issue in https://github.com/Microsoft/vsts-tasks ?

@@ -0,0 +1,24 @@
steps:

This comment has been minimized.

@TravisEz13

TravisEz13 Sep 16, 2018 Member

NIT: it would be good to set a build name, unless azure pipelines (can we say AP?) has made the default name meaningfull. Again see the powershell definitions.

Copy link
Member

TravisEz13 left a comment

see comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.