diff options
| author | seth <[email protected]> | 2024-01-26 06:02:54 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-01-26 06:04:21 -0500 |
| commit | a8e4baf500210fa88e0bae594e3470e2fbe10c0f (patch) | |
| tree | 055089bd13e76dd0c6b9f5fa620277919cc9e56f /test | |
| parent | ef5b24fe66ea39607abfc1a43f5cc25471596052 (diff) | |
fix: use writeShellApplication for run-ci
Diffstat (limited to 'test')
| -rw-r--r-- | test/flake.nix | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/test/flake.nix b/test/flake.nix index bb8ff4c..724fc9c 100644 --- a/test/flake.nix +++ b/test/flake.nix @@ -33,21 +33,27 @@ devShells.default = pkgs.mkShellNoCC { packages = [ - (pkgs.writeShellScriptBin "run-ci" '' - set -x + (pkgs.writeShellApplication { + name = "run-ci"; - exec ${lib.getExe config.procfiles.daemons.package} & - sleep 5 # avoid race conditions + runtimeInputs = [pkgs.overmind]; - if ! overmind status | grep running; then - echo "Processes failed to launch! Exiting with error" - overmind kill - exit 1 - fi + text = '' + set -x + + exec ${lib.getExe config.procfiles.daemons.package} & + sleep 5 # avoid race conditions - overmind kill - echo "Process finished! Exiting as success" - '') + if ! overmind status | grep running; then + echo "Processes failed to launch! Exiting with error" + overmind kill + exit 1 + fi + + overmind kill + echo "Process finished! Exiting as success" + ''; + }) ]; }; }; |
