Add tests for Nixpkgs/NixOS evaluation
This commit is contained in:
parent
ef53735f28
commit
9fff492561
1 changed files with 24 additions and 0 deletions
24
release.nix
24
release.nix
|
@ -234,6 +234,28 @@ let
|
||||||
touch $out/nix-support/hydra-build-products
|
touch $out/nix-support/hydra-build-products
|
||||||
''); # */
|
''); # */
|
||||||
|
|
||||||
|
tests.evalNixpkgs =
|
||||||
|
{ nixpkgs ? { outPath = pkgs.lib.cleanSource <nixpkgs>; revCount = 1234; shortRev = "abcdef"; } }:
|
||||||
|
import <nixpkgs/pkgs/top-level/make-tarball.nix> {
|
||||||
|
inherit nixpkgs;
|
||||||
|
inherit pkgs;
|
||||||
|
nix = build.x86_64-linux;
|
||||||
|
officialRelease = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
tests.evalNixOS =
|
||||||
|
{ nixpkgs ? { outPath = pkgs.lib.cleanSource <nixpkgs>; revCount = 1234; shortRev = "abcdef"; } }:
|
||||||
|
pkgs.runCommand "eval-nixos" { buildInputs = [ build.x86_64-linux ]; }
|
||||||
|
''
|
||||||
|
export NIX_DB_DIR=$TMPDIR
|
||||||
|
export NIX_STATE_DIR=$TMPDIR
|
||||||
|
nix-store --init
|
||||||
|
|
||||||
|
nix-instantiate ${nixpkgs}/nixos/release-combined.nix -A tested --dry-run
|
||||||
|
|
||||||
|
touch $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
# Aggregate job containing the release-critical jobs.
|
# Aggregate job containing the release-critical jobs.
|
||||||
release = pkgs.releaseTools.aggregate {
|
release = pkgs.releaseTools.aggregate {
|
||||||
|
@ -264,6 +286,8 @@ let
|
||||||
tests.remoteBuilds
|
tests.remoteBuilds
|
||||||
tests.nix-copy-closure
|
tests.nix-copy-closure
|
||||||
tests.binaryTarball
|
tests.binaryTarball
|
||||||
|
tests.evalNixpkgs
|
||||||
|
tests.evalNixOS
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue