From c2c980e31d768f5fadded9f8a77dedbee3be5798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 13 Jan 2024 18:58:43 +0200 Subject: [PATCH] add nix flake check --- Makefile | 9 ++++++++- flake.nix | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 48f9792..ecbd141 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,14 @@ +# unit tests independent of your environment. Aspires to be the default CI job. .PHONY: check test: - nix build .#e11sync-gunicorn.tests.simple -L + nix flake check +# Dev. +.PHONY: run +run: + app/manage.py runserver + +# "Like production". Run with "run-caddy". .PHONY: run-gunicorn run-gunicorn: nix run .#e11sync-gunicorn diff --git a/flake.nix b/flake.nix index 2deec5e..0c7f520 100644 --- a/flake.nix +++ b/flake.nix @@ -106,6 +106,8 @@ }; }; + checks.e11sync = packages.e11sync-gunicorn.passthru.tests.simple; + apps.e11sync-gunicorn = { type = "app"; name = "e11sync-gunicorn";