-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: use
-e
install for tox + add docker-compose for isolated Rabbit…
…MQ (#4375) * Using `pip install -e .` for tox runs improves startup time for tests by preventing unnecessary copy of files. * The docker-compose yml file allows to set up an isolated RabbitMQ instance for local CI testing.
- Loading branch information
1 parent
02248cf
commit 29331b5
Showing
2 changed files
with
32 additions
and
0 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,29 @@ | ||
# A small configuration for use in local CI testing, | ||
# if you wish to control the rabbitmq used. | ||
|
||
# Simply install docker, then run: | ||
# $ docker-compose -f .ci/docker-rabbitmq.yml up -d | ||
|
||
# and to power down, after testing: | ||
# $ docker-compose -f .ci/docker-rabbitmq.yml down | ||
|
||
# you can monitor rabbitmq use at: http://localhost:15672 | ||
|
||
version: '3.4' | ||
|
||
services: | ||
|
||
rabbit: | ||
image: rabbitmq:3.8.3-management | ||
container_name: aiida-rmq | ||
environment: | ||
RABBITMQ_DEFAULT_USER: guest | ||
RABBITMQ_DEFAULT_PASS: guest | ||
ports: | ||
- '5672:5672' | ||
- '15672:15672' | ||
healthcheck: | ||
test: rabbitmq-diagnostics -q ping | ||
interval: 30s | ||
timeout: 30s | ||
retries: 5 |
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