mirror of
https://github.com/juspay/services-flake.git
synced 2024-09-19 08:17:11 +03:00
15 lines
365 B
Bash
Executable File
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
|