2023-10-09 03:42:09 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/rabbitmq/rabbitmq-server/releases/download/v{{version}}/rabbitmq-server-generic-unix-{{version}}.tar.xz
|
|
|
|
strip-components: 1
|
|
|
|
versions:
|
|
|
|
github: rabbitmq/rabbitmq-server
|
|
|
|
warnings:
|
|
|
|
- vendored
|
|
|
|
dependencies:
|
|
|
|
erlang.org: '*'
|
|
|
|
build:
|
|
|
|
script:
|
|
|
|
- run: |
|
|
|
|
cp -r $SRCROOT/* ./
|
2023-12-13 18:34:39 +03:00
|
|
|
find . -mindepth 1 -maxdepth 1 -name \*.pkgx.\* -exec rm -rf {} \;
|
2023-10-09 03:42:09 +03:00
|
|
|
rm pkgx.yaml
|
2023-12-13 18:34:39 +03:00
|
|
|
working-directory: '{{prefix}}'
|
2023-10-09 03:42:09 +03:00
|
|
|
- run: mkdir -p lib/rabbitmq og/rabbitmq
|
2023-12-13 18:34:39 +03:00
|
|
|
working-directory: '{{prefix}}/var'
|
2023-10-09 03:42:09 +03:00
|
|
|
provides:
|
|
|
|
- bin/rabbitmqctl
|
|
|
|
- bin/rabbitmq-defaults
|
|
|
|
- bin/rabbitmq-diagnostics
|
|
|
|
- bin/rabbitmq-env
|
|
|
|
- bin/rabbitmq-plugins
|
|
|
|
- bin/rabbitmq-queues
|
|
|
|
- bin/rabbitmq-server
|
|
|
|
- bin/rabbitmq-streams
|
|
|
|
- bin/rabbitmq-upgrade
|
|
|
|
- bin/vmware-rabbitmq
|
|
|
|
test:
|
|
|
|
env:
|
|
|
|
RABBITMQ_MNESIA_BASE: $PWD/var/lib/rabbitmq/mnesia
|
|
|
|
script:
|
|
|
|
- rabbitmqctl --version | grep {{version}}
|
|
|
|
- killall rabbitmq-server || true
|
|
|
|
- rabbitmq-server -detached && sleep 15
|
|
|
|
# Let's give the server 15 seconds to start
|
|
|
|
- rabbitmqctl status | grep "Virtual host count"
|
|
|
|
- rabbitmqctl stop | grep "Stopping and halting node"
|