services-flake/test.sh
2023-07-10 21:25:49 -04:00

15 lines
365 B
Bash
Executable File

set -euxo pipefail
cd "$(dirname "$0")"
# TODO: Replace this with `nix run github:srid/nixci`
# On NixOS, run the VM tests to test runtime behaviour
if command -v nixos-rebuild &> /dev/null; then
# example test
nix flake check -L ./example --override-input services-flake .
# service tests
nix flake check -L ./test --override-input services-flake .
fi