Add nixci config to flake (#19)

This commit is contained in:
Sridhar Ratnakumar 2023-07-10 21:25:49 -04:00 committed by GitHub
parent 85a89560b6
commit 687ea2adb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -6,5 +6,21 @@
description = "Example flake using process-compose-flake";
path = builtins.path { path = ./example; filter = path: _: baseNameOf path == "flake.nix"; };
};
# Config for https://github.com/srid/nixci
# To run this, `nix run github:srid/nixci`
nixci = let overrideInputs = { "services-flake" = ./.; }; in {
example = {
inherit overrideInputs;
dir = "./example";
};
test = {
inherit overrideInputs;
dir = "./test";
};
dev = {
dir = "./dev";
};
};
};
}

View File

@ -2,6 +2,8 @@ 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