From e81eb6c6d218aaa465927d611db54de1e92f86f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 13 Jan 2024 18:07:24 +0200 Subject: [PATCH] attempting to add a test --- flake.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index b213889..3264109 100644 --- a/flake.nix +++ b/flake.nix @@ -44,7 +44,6 @@ ] ++ appDeps; buildDeps = [pkgs.dart-sass] ++ appDeps; - debugDeps = [pkgs.python3Packages.django-debug-toolbar] ++ runtimeDeps; geoip = pkgs.stdenv.mkDerivation { name = "geoip"; @@ -92,6 +91,11 @@ --add-flags e11sync.wsgi \ --add-flags --bind=127.0.0.1:${toString gunicornPort} ''; + passthru.tests = { + simple = pkgs.runCommand {} "e11sync-test" '' + exit 1; + ''; + }; }; apps.e11sync-gunicorn = { @@ -104,7 +108,7 @@ LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive"; GEOIP_PATH = "${geoip}"; E11SYNC_DEBUG = "1"; - packages = debugDeps; + packages = [pkgs.python3Packages.django-debug-toolbar] ++ runtimeDeps ++ buildDeps; }; formatter = pkgs.alejandra;