summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarco Sirabella <marco@sirabella.org>2021-05-27 12:13:16 -0400
committerMarco Sirabella <marco@sirabella.org>2021-05-27 12:19:14 -0400
commit3a66432f2616484c880b6daea2393bf1e9425a33 (patch)
treec1ecd5697a3d2cf8c8b24509eaa5682030ec144a
parentd8e73279b9e9dda14ba18d03f69c3747ae52a8b7 (diff)
downloadnixpkgs-3a66432f2616484c880b6daea2393bf1e9425a33.tar
nixpkgs-3a66432f2616484c880b6daea2393bf1e9425a33.tar.gz
nixpkgs-3a66432f2616484c880b6daea2393bf1e9425a33.tar.bz2
nixpkgs-3a66432f2616484c880b6daea2393bf1e9425a33.tar.lz
nixpkgs-3a66432f2616484c880b6daea2393bf1e9425a33.tar.xz
nixpkgs-3a66432f2616484c880b6daea2393bf1e9425a33.tar.zst
nixpkgs-3a66432f2616484c880b6daea2393bf1e9425a33.zip
php.buildPecl: Add checkPhase
Also update phpPackages' to use NO_INTERACTION
-rw-r--r--pkgs/build-support/build-pecl.nix1
-rw-r--r--pkgs/top-level/php-packages.nix2
2 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/build-pecl.nix b/pkgs/build-support/build-pecl.nix
index d75d3cf943a..d3a8cc54a14 100644
--- a/pkgs/build-support/build-pecl.nix
+++ b/pkgs/build-support/build-pecl.nix
@@ -33,4 +33,5 @@ stdenv.mkDerivation (args // {
       (dep: "mkdir -p ext; ln -s ${dep.dev}/include ext/${dep.extensionName}")
       internalDeps}
   '';
+  checkPhase = "NO_INTERACTON=yes make test";
 })
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix
index 0f61402bb05..c59391ce290 100644
--- a/pkgs/top-level/php-packages.nix
+++ b/pkgs/top-level/php-packages.nix
@@ -235,7 +235,7 @@ lib.makeScope pkgs.newScope (self: with self; {
           (dep: "mkdir -p ext; ln -s ${dep.dev}/include ext/${dep.extensionName}")
           internalDeps}
       '';
-      checkPhase = "runHook preCheck; echo n | make test; runHook postCheck";
+      checkPhase = "runHook preCheck; NO_INTERACTON=yes make test; runHook postCheck";
       outputs = [ "out" "dev" ];
       installPhase = ''
         mkdir -p $out/lib/php/extensions