From 10135cbeacd74a36971582d421742f576528606d Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 9 Sep 2018 19:17:11 +0200 Subject: add ci.nix --- ci.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ci.nix (limited to 'ci.nix') diff --git a/ci.nix b/ci.nix new file mode 100644 index 00000000..6d237875 --- /dev/null +++ b/ci.nix @@ -0,0 +1,21 @@ +# usage: nix-instantiate --eval --strict --json ./ci.nix +with import ./lib; +let + pkgs = import { overlays = [ (import ./submodules/nix-writers/pkgs) ]; }; + system = + import { + modules = [{ + imports = [ + ./krebs + ./krebs/2configs + ]; + }]; + } + ; + + ci-systems = filterAttrs (_: v: v.ci) system.config.krebs.hosts; + + build = host: owner: + ((import (toString ./. + "/${owner}/krops.nix") { name = host; }).test {target = "${getEnv "HOME"}/stockholm-build";}); + +in mapAttrs (n: h: build n h.owner.name) ci-systems -- cgit v1.2.3