Unverified Commit 2bf826c9 authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

nixos/release: respect `meta.hydraPlatforms` from NixOS tests

E.g. nspawn tests are not supported on the official NixOS infrastructure
currently.
parent 924ddc55
Loading
Loading
Loading
Loading
+22 −12
Original line number Diff line number Diff line
@@ -43,12 +43,17 @@ let
      pkgs = import ./.. { inherit system; };
      callTest =
        config:
        let
          inherit (config) test;
        in
        lib.optionalAttrs (builtins.elem system (getPlatforms test)) (
          if attrNamesOnly then
          hydraJob config.test
            hydraJob test
          else
            {
            ${system} = hydraJob config.test;
          };
              ${system} = hydraJob test;
            }
        );
    }
    // {
      # for typechecking of the scripts and evaluation of
@@ -58,12 +63,17 @@ let
        pkgs = import ./.. { inherit system; };
        callTest =
          config:
          let
            inherit (config) driver;
          in
          lib.optionalAttrs (builtins.elem system (getPlatforms driver)) (
            if attrNamesOnly then
            hydraJob config.driver
              hydraJob driver
            else
              {
              ${system} = hydraJob config.driver;
            };
                ${system} = hydraJob driver;
              }
          );
      };
    };