diff options
author | makefu <github@syntax-fehler.de> | 2018-09-08 18:53:49 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-09-08 18:53:49 +0200 |
commit | e7dd1d0e65b267821811afdb7767669bf79be301 (patch) | |
tree | 05bd4d080c203b57cfcdeb3609ddfba96c7369e2 /krebs/2configs/buildbot-stockholm.nix | |
parent | 7d8825a33ec80b396c1aa3bed5b420ac2ea9abdc (diff) | |
parent | 8639e4008a34e5e7d68202a621ef8c95fe3087f4 (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'krebs/2configs/buildbot-stockholm.nix')
-rw-r--r-- | krebs/2configs/buildbot-stockholm.nix | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/krebs/2configs/buildbot-stockholm.nix b/krebs/2configs/buildbot-stockholm.nix index 62a5f9ab5..13d4c6729 100644 --- a/krebs/2configs/buildbot-stockholm.nix +++ b/krebs/2configs/buildbot-stockholm.nix @@ -4,6 +4,14 @@ let hostname = config.networking.hostName; + build = pkgs.writeDash "build" '' + set -eu + export USER="$1" + export SYSTEM="$2" + $(nix-build $USER/krops.nix --no-out-link --argstr name "$SYSTEM" --argstr target "$HOME/stockholm-build" -A ci) + ''; + + in { networking.firewall.allowedTCPPorts = [ 80 ]; @@ -24,7 +32,7 @@ in testslave = "lasspass"; }; change_source.stockholm = '' - stockholm_repo = 'http://cgit.prism.r/stockholm' + stockholm_repo = 'http://cgit.hotdog.r/stockholm' cs.append( changes.GitPoller( stockholm_repo, @@ -95,15 +103,9 @@ in env={ "NIX_PATH": "secrets=/var/src/stockholm/null:stockholm=./:/var/src", "NIX_REMOTE": "daemon", - "dummy_secrets": "true", }, command=[ - "nix-shell", "-I", "stockholm=.", "--run", " ".join(["test", - "--user={}".format(user), - "--system={}".format(host), - "--force-populate", - "--target=$LOGNAME@${config.krebs.build.host.name}$HOME/{}".format(user), - ]) + "${build}", user, host ], timeout=90001, workdir='build', # TODO figure out why we need this? |