re-export flake outputs under checks for CI
This commit is contained in:
parent
a4f642402b
commit
e1dbd5c119
1 changed files with 24 additions and 1 deletions
25
flake.nix
25
flake.nix
|
|
@ -134,6 +134,9 @@
|
|||
checks = forAllSystems (
|
||||
pkgs:
|
||||
let
|
||||
system = pkgs.stdenv.hostPlatform.system;
|
||||
exportedPackages = self.packages.${system};
|
||||
exportedApps = self.apps.${system};
|
||||
agentPythonSet =
|
||||
(pkgs.callPackage pyproject-nix.build.packages {
|
||||
python = pkgs.python312;
|
||||
|
|
@ -156,7 +159,27 @@
|
|||
buildbotExtSrc = ./buildbot-ext;
|
||||
in
|
||||
{
|
||||
devShell = self.devShells.${pkgs.stdenv.hostPlatform.system}.default;
|
||||
devShell = self.devShells.${system}.default;
|
||||
formatter = self.formatter.${system};
|
||||
package-default = exportedPackages.default;
|
||||
package-nix-builder-autoscaler = exportedPackages.nix-builder-autoscaler;
|
||||
package-buildbot-autoscale-ext = exportedPackages.buildbot-autoscale-ext;
|
||||
package-buildbot-autoscale-ext-venv = exportedPackages.buildbot-autoscale-ext-venv;
|
||||
|
||||
app-default = pkgs.runCommand "check-app-default" { } ''
|
||||
test -x ${exportedApps.default.program}
|
||||
touch $out
|
||||
'';
|
||||
|
||||
app-nix-builder-autoscaler = pkgs.runCommand "check-app-nix-builder-autoscaler" { } ''
|
||||
test -x ${exportedApps.nix-builder-autoscaler.program}
|
||||
touch $out
|
||||
'';
|
||||
|
||||
app-autoscalerctl = pkgs.runCommand "check-app-autoscalerctl" { } ''
|
||||
test -x ${exportedApps.autoscalerctl.program}
|
||||
touch $out
|
||||
'';
|
||||
|
||||
nix-builder-autoscaler-unit-tests = pkgs.stdenv.mkDerivation {
|
||||
name = "nix-builder-autoscaler-unit-tests";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue