diff options
author | makefu <github@syntax-fehler.de> | 2015-12-30 14:47:40 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-12-30 14:52:11 +0100 |
commit | c8dd7f377075545dd1431a9f1b699260abe27c57 (patch) | |
tree | cb4f9f836bfccd0fd5522b76de301556fac7cf2a /shared | |
parent | c3ed11fc6ef09abce0d6117693119d65d962091d (diff) |
s 1 minimal-deploy: init test
Diffstat (limited to 'shared')
-rw-r--r-- | shared/1systems/test-minimal-deploy.nix | 13 | ||||
-rw-r--r-- | shared/2configs/buildbot-standalone.nix | 11 |
2 files changed, 24 insertions, 0 deletions
diff --git a/shared/1systems/test-minimal-deploy.nix b/shared/1systems/test-minimal-deploy.nix new file mode 100644 index 0000000..ddd96f6 --- /dev/null +++ b/shared/1systems/test-minimal-deploy.nix @@ -0,0 +1,13 @@ +{ config, pkgs, lib, ... }: +{ + krebs = { + enable = true; + build.user = config.krebs.users.shared; + build.host = config.krebs.hosts.test-all-krebs-modules; + }; + # just get the system running + boot.loader.grub.devices = ["/dev/sda"]; + fileSystems."/" = { + device = "/dev/lol"; + }; +} diff --git a/shared/2configs/buildbot-standalone.nix b/shared/2configs/buildbot-standalone.nix index c62f892..6ffd7fe 100644 --- a/shared/2configs/buildbot-standalone.nix +++ b/shared/2configs/buildbot-standalone.nix @@ -94,6 +94,17 @@ in { --argstr current-host-name lol \ --strict --json"]) + addShell(f,name="instantiate-test-minimal-deploy",env=env, + command=nixshell + \ + ["nix-instantiate --eval -A \ + users.shared.test-minimal-deploy.system \ + -I stockholm=. \ + -I secrets=. '<stockholm>' \ + --argstr current-date lol \ + --argstr current-user-name shared \ + --argstr current-host-name lol \ + --strict --json"]) + bu.append(util.BuilderConfig(name="fast-tests", slavenames=slavenames, factory=f)) |