Skip to content

Commit

Permalink
hydra*: add passthru.tests to reference VM-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma27 committed Apr 15, 2020
1 parent 6f6c08a commit ef80b63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkgs/development/tools/misc/hydra/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
, docbook_xsl, openssh, gnused, coreutils, findutils, gzip, lzma, gnutar
, rpm, dpkg, cdrkit, pixz, lib, boost, autoreconfHook, src ? null, version ? null
, migration ? false, patches ? []
, tests ? {}
}:

with stdenv;
Expand Down Expand Up @@ -124,7 +125,7 @@ in stdenv.mkDerivation rec {

dontStrip = true;

passthru = { inherit perlDeps migration; };
passthru = { inherit perlDeps migration tests; };

meta = with stdenv.lib; {
description = "Nix-based continuous build system";
Expand Down
11 changes: 10 additions & 1 deletion pkgs/development/tools/misc/hydra/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ fetchFromGitHub, nixStable, callPackage, nixFlakes, fetchpatch }:
{ fetchFromGitHub, nixStable, callPackage, nixFlakes, fetchpatch, nixosTests }:

{
# Package for phase-1 of the db migration for Hydra.
Expand All @@ -13,6 +13,11 @@
};
nix = nixStable;
migration = true;

tests = {
db-migration = nixosTests.hydra-db-migration.mig;
basic = nixosTests.hydra.hydra-migration;
};
};

# Hydra from latest master branch. Contains breaking changes,
Expand All @@ -27,5 +32,9 @@
sha256 = "1vs3lyfyafsl7wbpmycv7c3n9n2rkrswp65msb6q1iskgpvr96d5";
};
nix = nixFlakes;
tests = {
db-migration = nixosTests.hydra-db-migration.mig;
basic = nixosTests.hydra.hydra-unstable;
};
};
}

0 comments on commit ef80b63

Please sign in to comment.