stop pwsh build command on error
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
OCram85 2022-07-13 14:45:23 +02:00
parent ff675cc021
commit c76b78de01
Signed by: OCram85
GPG Key ID: 456940F03DE016E1

View File

@ -17,7 +17,7 @@ steps:
commands: commands:
- | - |
pwsh -NonInteractive -c "& { pwsh -NonInteractive -c "& {
Import-Module './src/DroneHelper.psd1'; Import-Module './src/DroneHelper.psd1' -ErrorAction 'Stop';
Invoke-FileLinter Invoke-FileLinter
}" }"
@ -27,7 +27,7 @@ steps:
commands: commands:
- | - |
pwsh -NonInteractive -c "& { pwsh -NonInteractive -c "& {
Import-Module './src/DroneHelper.psd1'; Import-Module './src/DroneHelper.psd1' -ErrorAction 'Stop';
Invoke-Linter Invoke-Linter
}" }"
@ -37,7 +37,7 @@ steps:
commands: commands:
- | - |
pwsh -NonInteractive -c "& { pwsh -NonInteractive -c "& {
Import-Module './src/DroneHelper.psd1'; Import-Module './src/DroneHelper.psd1' -ErrorAction 'Stop';
Invoke-UnitTest -ExcludeTag 'Integration' Invoke-UnitTest -ExcludeTag 'Integration'
}" }"
@ -52,7 +52,7 @@ steps:
commands: commands:
- | - |
pwsh -NonInteractive -c "& { pwsh -NonInteractive -c "& {
Import-Module './src/DroneHelper.psd1'; Import-Module './src/DroneHelper.psd1' -ErrorAction 'Stop';
Send-PRComment Send-PRComment
}" }"
when: when:
@ -65,7 +65,7 @@ steps:
commands: commands:
- | - |
pwsh -NonInteractive -c "& { pwsh -NonInteractive -c "& {
Import-Module './src/DroneHelper.psd1'; Import-Module './src/DroneHelper.psd1' -ErrorAction 'Stop';
Invoke-BuildState Invoke-BuildState
}" }"
@ -88,12 +88,12 @@ steps:
commands: commands:
- | - |
pwsh -NonInteractive -c "& { pwsh -NonInteractive -c "& {
Import-Module './src/DroneHelper.psd1'; Import-Module './src/DroneHelper.psd1' -ErrorAction 'Stop';
Update-ModuleMeta -Verbose Update-ModuleMeta -Verbose
}" }"
- | - |
pwsh -NonInteractive -c "& { pwsh -NonInteractive -c "& {
Import-Module './src/DroneHelper.psd1'; Import-Module './src/DroneHelper.psd1' -ErrorAction 'Stop';
New-BuildPackage -AdditionalPath './src/Rules' -Verbose New-BuildPackage -AdditionalPath './src/Rules' -Verbose
}" }"
@ -117,6 +117,6 @@ steps:
commands: commands:
- | - |
pwsh -NonInteractive -c "& { pwsh -NonInteractive -c "& {
Import-Module './src/DroneHelper.psd1'; Import-Module './src/DroneHelper.psd1' -ErrorAction 'Stop';
Invoke-Publish -Verbose Invoke-Publish -Verbose
}" }"