test.sh: check for NixOS

This commit is contained in:
Sridhar Ratnakumar 2023-06-14 13:58:02 -04:00
parent 97e7dd23d4
commit 641ae9fa27

View File

@ -7,4 +7,6 @@ cd ./example
nix build -L --no-link --print-out-paths --override-input process-compose-flake ..
# On NixOS, run the VM tests to test runtime behaviour
nix flake check -L --override-input process-compose-flake ..
if command -v nixos-rebuild &> /dev/null; then
nix flake check -L --override-input process-compose-flake ..
fi