-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build step to check for
inet_error
- Loading branch information
1 parent
eaa7e33
commit e0367ad
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
set -o nounset | ||
|
||
readonly docker_name_prefix='rabbitmq-dotnet-client' | ||
|
||
declare -r rabbitmq_docker_name="$docker_name_prefix-rabbitmq" | ||
|
||
if docker logs "$rabbitmq_docker_name" | grep -iF inet_error | ||
then | ||
echo '[ERROR] found inet_error in RabbitMQ logs' 1>&2 | ||
exit 1 | ||
fi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
$ProgressPreference = 'Continue' | ||
$VerbosePreference = 'Continue' | ||
$ErrorActionPreference = 'Stop' | ||
Set-StrictMode -Version 2.0 | ||
|
||
$rabbitmq_log_dir = Join-Path -Path $env:AppData -ChildPath 'RabbitMQ' | Join-Path -ChildPath 'log' | ||
Write-Host "[INFO] looking for errors in '$rabbitmq_log_dir'" | ||
|
||
If (Get-ChildItem $rabbitmq_log_dir\*.log | Select-String -Quiet -SimpleMatch -Pattern inet_error) | ||
{ | ||
Write-Error "[ERROR] found inet_error in '$rabbitmq_log_dir'" | ||
exit 1 | ||
} |
This file contains 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