mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-29 15:43:54 +00:00
Use the working tree as the source of allmydata package
This commit is contained in:
parent
3e18301f86
commit
d82ade538c
12
flake.nix
12
flake.nix
@ -123,8 +123,9 @@
|
||||
|
||||
# makeTestEnv :: string -> derivation
|
||||
#
|
||||
# Create a derivation that includes a Python runtime, Tahoe-LAFS, and
|
||||
# all of its dependencies.
|
||||
# Create a derivation that includes a Python runtime and all of the
|
||||
# Tahoe-LAFS dependencies, but not Tahoe-LAFS itself, which we'll get
|
||||
# from the working directory.
|
||||
makeTestEnv = pyVersion: (pkgs.${pyVersion}.withPackages (ps: with ps;
|
||||
[ tahoe-lafs ] ++
|
||||
tahoe-lafs.passthru.extras.i2p ++
|
||||
@ -191,13 +192,14 @@
|
||||
type = "app";
|
||||
program =
|
||||
let
|
||||
py = makeTestEnv pyVersion;
|
||||
python = "${makeTestEnv pyVersion}/bin/python";
|
||||
in
|
||||
writeScript "unit-tests"
|
||||
''
|
||||
${py} setup.py update_version
|
||||
${python} setup.py update_version
|
||||
export TAHOE_LAFS_HYPOTHESIS_PROFILE=ci
|
||||
${py}/bin/python -m twisted.trial "$@"
|
||||
export PYTHONPATH=$PWD/src
|
||||
${python} -m twisted.trial "$@"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user