[Nix-dev] How can we test changes before pushing them to master?

Eelco Dolstra eelco.dolstra at logicblox.com
Tue Jul 24 21:46:32 CEST 2012


Hi,

On 24/07/12 14:34, Cillian de Róiste wrote:

> Perhaps other people already have similar scripts or workflows or
> ideas of how we could go about this?

Maybe something like:

$ nix-env -f . -qaP \* --drv-path | sort > l1
(...modify package...)
$ nix-env -f . -qaP \* --drv-path | sort > l2
$ changed=$(diff l1 l2 | awk '{print $2}' | sort | uniq)
$ nix-build $(for i in $changed; do echo -A $i; done)

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list