summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/flake.nix30
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"
+ '';
+ })
];
};
};