Feature/make invoke pester calls ci agnostic#23
Open
leyshon wants to merge 5 commits intoASOS:masterfrom
Open
Conversation
…rCi and have added a parameter to specify the CI tool you are using (or 'other' which is the default) to allow for different code paths for different tools. As a result the teamcity message is now only written if you specify the CiTool as 'TeamCity'
…ou can pass this through as a parameter. Default is set to 'other'
…topusScriptTestSuite to ensure the TeamCity messages are correctly written by Invoke-PesterForCi
… also added a test to ensure that the Write-TeamCity message does not take place when the CiTool parameter is not set to TeamCity
Contributor
|
Nice improvement, I don't see a problem accepting this, a few considerations:
The validate set lists a number of other CI Tools, which are you using out of interest? Could the module be extended to take advantage of it, have you already got it hooked up to your CI tool? |
|
This sounds pretty slick to add as it would allow testing with AppVeyor and TeamCity/Jenkins. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In order to better allow the module to be used with other CI tools I've renamed the Invoke-PesterForTeamCity cmdlet and added a parameter to specify the CI tool. I've updated the references to this cmdlet and made sure that the existing Invoke-TeamCityCiUpload will continue to function as it did.