re-enable nix-based test suite runs

This commit is contained in:
Jean-Paul Calderone 2023-03-13 16:43:22 -04:00
parent edd8e99178
commit 93cd2aa354
2 changed files with 10 additions and 2 deletions

View File

@ -438,7 +438,7 @@ jobs:
cache_if_able nix-build \
--cores 8 \
--argstr pkgsVersion "nixpkgs-<<parameters.nixpkgs>>" \
tests.nix
nix/tests/
typechecks:
docker:

View File

@ -2,6 +2,9 @@
, tahoe-lafs-src
, extras
# control how the test suite is run
, doCheck ? false
# always dependencies
, attrs
, autobahn
@ -117,6 +120,11 @@ buildPythonPackage {
inherit pname version;
src = tahoe-lafs-src;
buildInputs = pythonPackageDependencies;
inherit doCheck;
checkInputs = pythonCheckDependencies;
checkPhase = "TAHOE_LAFS_HYPOTHESIS_PROFILE=ci python -m twisted.trial -j $NIX_BUILD_CORES allmydata";
checkPhase = ''
export TAHOE_LAFS_HYPOTHESIS_PROFILE=ci
python -m twisted.trial -j $NIX_BUILD_CORES allmydata
'';
}