-
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
waiting on reporter inputNeeds reporter input/responseNeeds reporter input/response
Description
I chose to override some properties in pssake.ps1:
properties {
# Set this to $true to create a module with a monolithic PSM1
$PSBPreference.Build.CompileModule = $false
$PSBPreference.Help.DefaultLocale = 'en-US'
$PSBPreference.Test.OutputFile = 'out/testResults.xml'
# These settings overwrite values supplied from the PowerShellBuild
# module and govern how those tasks are executed
$PSBPreference.Test.ScriptAnalysisEnabled = $false
$PSBPreference.Test.CodeCoverage.Enabled = $false
$PSBPreference.Publish.PSRepository = 'pwsh'
}
Expected Behavior
It should be possible to enable or disable CodeCoverage or PSScriptAnalyzer Tasks
Current Behavior
I can enable or disable CodeCoverage or override the name of the PSGallery used without any problem,
but it is not possible to disable the PSScriptanalyzer as describe.
Possible Solution
For now I disable the Analyze Step in build.properties.ps1 on my build agent,
because the Analyze Step fails ?randomly? from time to time.
Steps to Reproduce (for bugs)
- add $PSBPreference.Test.ScriptAnalysisEnabled = $false to pssake.ps1
- add $PSBPreference.Test.CodeCoverage.Enabled = $true to pssake.ps1
- Build
Context
Your Environment
Powershell 5.1
I always use all the required dependency's in the required version
Metadata
Metadata
Assignees
Labels
waiting on reporter inputNeeds reporter input/responseNeeds reporter input/response