1
Fork 0

attempting to add a test

This commit is contained in:
Motiejus Jakštys 2024-01-13 18:07:24 +02:00
parent fd7cbc93a4
commit e81eb6c6d2
1 changed files with 6 additions and 2 deletions

View File

@ -44,7 +44,6 @@
] ]
++ appDeps; ++ appDeps;
buildDeps = [pkgs.dart-sass] ++ appDeps; buildDeps = [pkgs.dart-sass] ++ appDeps;
debugDeps = [pkgs.python3Packages.django-debug-toolbar] ++ runtimeDeps;
geoip = pkgs.stdenv.mkDerivation { geoip = pkgs.stdenv.mkDerivation {
name = "geoip"; name = "geoip";
@ -92,6 +91,11 @@
--add-flags e11sync.wsgi \ --add-flags e11sync.wsgi \
--add-flags --bind=127.0.0.1:${toString gunicornPort} --add-flags --bind=127.0.0.1:${toString gunicornPort}
''; '';
passthru.tests = {
simple = pkgs.runCommand {} "e11sync-test" ''
exit 1;
'';
};
}; };
apps.e11sync-gunicorn = { apps.e11sync-gunicorn = {
@ -104,7 +108,7 @@
LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive"; LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
GEOIP_PATH = "${geoip}"; GEOIP_PATH = "${geoip}";
E11SYNC_DEBUG = "1"; E11SYNC_DEBUG = "1";
packages = debugDeps; packages = [pkgs.python3Packages.django-debug-toolbar] ++ runtimeDeps ++ buildDeps;
}; };
formatter = pkgs.alejandra; formatter = pkgs.alejandra;