-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update current client in
Upstream#read_loop
(#138)
- Loading branch information
Showing
9 changed files
with
146 additions
and
18 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
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
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 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
docker compose \ | ||
--file spec/docker-compose.yml \ | ||
up \ | ||
--remove-orphans \ | ||
--force-recreate \ | ||
--renew-anon-volumes \ | ||
--build \ | ||
--exit-code-from spec |
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 @@ | ||
FROM 84codes/crystal:latest-ubuntu-22.04 | ||
|
||
RUN apt-get update && apt-get install -y rabbitmq-server | ||
|
||
WORKDIR /tmp | ||
|
||
# We want to install shards before copying code/spec files for quicker runs | ||
COPY shard.yml shard.lock ./ | ||
RUN shards install | ||
|
||
COPY src/ src/ | ||
COPY spec/ spec/ | ||
|
||
COPY spec/entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |
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
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,6 @@ | ||
version: "3.8" | ||
services: | ||
spec: | ||
build: | ||
context: .. | ||
dockerfile: spec/Dockerfile |
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 -e | ||
set -u | ||
set -x | ||
|
||
export RABBITMQ_PID_FILE=/tmp/rabbitmq.pid | ||
|
||
# Start RabbitMQ | ||
rabbitmq-server -detached | ||
|
||
# Wait for RabbitMQ to start | ||
rabbitmqctl wait $RABBITMQ_PID_FILE | ||
|
||
crystal --version | ||
crystal spec --order random |
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
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