Add hydra-notify to devshell

I came across https://github.com/NixOS/hydra/issues/751 and realized
that hydra-notify is responsible for creating the additional jobsets in
a declarative file. My declarative testing works in dev now.
This commit is contained in:
Casey Ransom 2020-05-20 15:32:41 -04:00
parent 3c6b724f92
commit 8a169ffa56
2 changed files with 8 additions and 0 deletions

View file

@ -1,4 +1,5 @@
hydra-server: ./foreman/start-hydra.sh
hydra-queue-runner: ./foreman/start-queue-runner.sh
hydra-evaluator: ./foreman/start-evaluator.sh
hydra-notify: ./foreman/start-notify.sh
postgres: ./foreman/start-postgres.sh

7
foreman/start-notify.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
# wait for hydra-server to listen
while ! nc -z localhost 63333; do sleep 1; done
touch .hydra-data/hydra.conf
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-notify