Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
892 B
892 B
redisTestHook
This hook starts a Redis server during checkPhase. Example:
{
stdenv,
redis,
redisTestHook,
}:
stdenv.mkDerivation {
# ...
nativeCheckInputs = [ redisTestHook ];
}
If you use a custom checkPhase, remember to add the runHook calls:
{
checkPhase = ''
runHook preCheck
# ... your tests
runHook postCheck
'';
}
Variables
The hook logic will read the following variables and set them to a default value if unset or empty.
Exported variables:
REDIS_SOCKET: UNIX domain socket path
Bash-only variables:
redisTestPort: Port to use by Redis. Defaults to6379
Example usage:
{
stdenv,
redis,
redisTestHook,
}:
stdenv.mkDerivation {
# ...
nativeCheckInputs = [ redisTestHook ];
preCheck = ''
redisTestPort=6390;
'';
}