2021-05-26 20:58:59 +02:00
|
|
|
{ pkgs ? import ../pkgs.nix, arionTestingFlags ? {} }:
|
2019-01-02 09:54:46 +01:00
|
|
|
let
|
2019-03-26 14:06:50 +01:00
|
|
|
inherit (pkgs) nixosTest recurseIntoAttrs arion;
|
2019-01-02 09:54:46 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
recurseIntoAttrs {
|
2019-03-26 14:06:50 +01:00
|
|
|
|
2021-05-26 20:58:59 +02:00
|
|
|
test = nixosTest ./arion-test;
|
|
|
|
|
2021-05-26 16:57:56 +02:00
|
|
|
testWithPodman =
|
|
|
|
if arionTestingFlags.nixosHasPodmanDockerSocket
|
|
|
|
then nixosTest (pkgs.callPackage ./arion-test { usePodman = true; })
|
|
|
|
else {};
|
2019-03-26 14:06:50 +01:00
|
|
|
|
|
|
|
testBuild = arion.build {
|
|
|
|
|
|
|
|
# To be more accurately, you can do
|
|
|
|
# pkgs = import ../examples/minimal/arion-pkgs.nix;
|
|
|
|
# but this is quite efficient:
|
|
|
|
inherit pkgs;
|
|
|
|
|
|
|
|
modules = [ ../examples/minimal/arion-compose.nix ];
|
|
|
|
};
|
|
|
|
|
2019-01-02 09:54:46 +01:00
|
|
|
}
|