In checks
This commit is contained in:
19
flake.nix
19
flake.nix
@@ -106,6 +106,13 @@
|
|||||||
partitions = 1;
|
partitions = 1;
|
||||||
partitionType = "count";
|
partitionType = "count";
|
||||||
});
|
});
|
||||||
|
runCommandHook = {
|
||||||
|
newalan = pkgs.writeScript "run-me" ''
|
||||||
|
#!${pkgs.runtimeShell}
|
||||||
|
|
||||||
|
${pkgs.jq}/bin/jq . "$HYDRA_JSON"
|
||||||
|
'';
|
||||||
|
};
|
||||||
} // lib.optionalAttrs (system == "x86_64-linux") {
|
} // lib.optionalAttrs (system == "x86_64-linux") {
|
||||||
# NB: cargo-tarpaulin only supports x86_64 systems
|
# NB: cargo-tarpaulin only supports x86_64 systems
|
||||||
# Check code coverage (note: this will not upload coverage anywhere)
|
# Check code coverage (note: this will not upload coverage anywhere)
|
||||||
@@ -113,18 +120,6 @@
|
|||||||
inherit cargoArtifacts;
|
inherit cargoArtifacts;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
hydraJobs = {
|
|
||||||
inherit newalan;
|
|
||||||
|
|
||||||
runCommandHooks = {
|
|
||||||
newalan = pkgs.writeScript "run-me" ''
|
|
||||||
#!${pkgs.runtimeShell}
|
|
||||||
sleep 10s
|
|
||||||
${pkgs.jq}/bin/jq . "$HYDRA_JSON" > ~/test.json
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
packages.default = newalan;
|
packages.default = newalan;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user