upsun: add test

This commit is contained in:
Pol Dellaiera 2024-05-15 10:34:52 +02:00
parent ffc0157df6
commit 6ef43c9256
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -2,6 +2,8 @@
stdenvNoCC,
lib,
fetchurl,
testers,
upsun
}:
stdenvNoCC.mkDerivation (finalAttrs: {
@ -42,6 +44,13 @@ stdenvNoCC.mkDerivation (finalAttrs: {
runHook postInstall
'';
passthru = {
tests.version = testers.testVersion {
inherit (finalAttrs) version;
package = upsun;
};
};
meta = {
homepage = "https://github.com/platformsh/cli";
description = "The unified tool for managing your Upsun services from the command line";