forked from fediversity/fediversity
Compare commits
No commits in common. "347bb7b2422fe3c387cf0d8f47a1a019678ed86a" and "8860c18e03387b12a9294dff4f47584155edae3d" have entirely different histories.
347bb7b242
...
8860c18e03
1 changed files with 12 additions and 3 deletions
|
|
@ -25,12 +25,16 @@ in
|
|||
|
||||
environment.systemPackages = with pkgs; [
|
||||
jq
|
||||
automake
|
||||
autoconf
|
||||
];
|
||||
|
||||
# FIXME: sad times
|
||||
system.extraDependencies = with pkgs; [
|
||||
jq
|
||||
jq.inputDerivation
|
||||
automake
|
||||
autoconf
|
||||
];
|
||||
|
||||
system.extraDependenciesFromModule =
|
||||
|
|
@ -38,16 +42,18 @@ in
|
|||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
hello
|
||||
automake
|
||||
autoconf
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
extraTestScript = ''
|
||||
with subtest("Check the status before deployment"):
|
||||
hello.fail("hello 1>&2")
|
||||
|
||||
${lib.concatStringsSep "\n" (
|
||||
lib.lists.map (nodeName: ''
|
||||
with subtest("Check the status before deployment"):
|
||||
${nodeName}.fail("${nodeName} 1>&2")
|
||||
|
||||
with subtest("Run the deployment for ${nodeName}"):
|
||||
deployer.succeed("""
|
||||
set -euo pipefail
|
||||
|
|
@ -71,6 +77,8 @@ in
|
|||
|
||||
environment.systemPackages = with pkgs; [
|
||||
hello
|
||||
automake
|
||||
autoconf
|
||||
];
|
||||
};
|
||||
in
|
||||
|
|
@ -88,6 +96,7 @@ in
|
|||
eval "export $(echo $json | jq -r 'to_entries | map("\(.key)=\(.value)") | @sh')"
|
||||
host="root@${nodeName}"
|
||||
sshOpts=(
|
||||
-o BatchMode=yes
|
||||
-o StrictHostKeyChecking=no
|
||||
-o "ConnectTimeout=1"
|
||||
-o "ServerAliveInterval=1"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue