1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-24 11:19:35 +01:00

Split installTests

That way the CI will run the different ones on different runners
This commit is contained in:
regnat 2022-02-25 07:46:24 +01:00
parent 38edf8a0b4
commit a06cd93324

View file

@ -533,26 +533,28 @@
nixpkgs = nixpkgs-regression; nixpkgs = nixpkgs-regression;
}; };
installTests = forAllSystems (system: installTestsAgainstSelf = forAllSystems (system:
let pkgs = nixpkgsFor.${system}; in let pkgs = nixpkgsFor.${system}; in
pkgs.runCommand "install-tests" { testNixVersions pkgs pkgs.nix pkgs.pkgs.nix
againstSelf = testNixVersions pkgs pkgs.nix pkgs.pkgs.nix; );
againstCurrentUnstable = installTestsAgainstCurrentUnstable = forAllSystems (system:
# FIXME: temporarily disable this on macOS because of #3605. let pkgs = nixpkgsFor.${system}; in
if system == "x86_64-linux" # FIXME: temporarily disable this on macOS because of #3605.
then testNixVersions pkgs pkgs.nix pkgs.nixUnstable if system == "x86_64-linux"
else null; then testNixVersions pkgs pkgs.nix pkgs.nixUnstable
# Disabled because the latest stable version doesn't handle else pkgs.writeText "dummy" "dummy"
# `NIX_DAEMON_SOCKET_PATH` which is required for the tests to work );
# againstLatestStable = testNixVersions pkgs pkgs.nix pkgs.nixStable; # Disabled because the latest stable version doesn't handle
} "touch $out"); # `NIX_DAEMON_SOCKET_PATH` which is required for the tests to work
# againstLatestStable = testNixVersions pkgs pkgs.nix pkgs.nixStable;
}; };
checks = forAllSystems (system: { checks = forAllSystems (system: {
binaryTarball = self.hydraJobs.binaryTarball.${system}; binaryTarball = self.hydraJobs.binaryTarball.${system};
perlBindings = self.hydraJobs.perlBindings.${system}; perlBindings = self.hydraJobs.perlBindings.${system};
installTests = self.hydraJobs.installTests.${system}; installTestsAgainstCurrentUnstable = self.hydraJobs.installTestsAgainstCurrentUnstable.${system};
installTestsAgainstSelf = self.hydraJobs.installTestsAgainstSelf.${system};
} // (nixpkgs.lib.optionalAttrs (builtins.elem system linux64BitSystems)) { } // (nixpkgs.lib.optionalAttrs (builtins.elem system linux64BitSystems)) {
dockerImage = self.hydraJobs.dockerImage.${system}; dockerImage = self.hydraJobs.dockerImage.${system};
}); });