commit c2c980e31d768f5fadded9f8a77dedbee3be5798 (tree) parent e8deac6ee60e9aa2e7eb437de909f7882f07fca3 Author: Motiejus Jakštys <motiejus@jakstys.lt> Date: Sat, 13 Jan 2024 18:58:43 +0200 add nix flake check Diffstat:
| M | Makefile | | | 9 | ++++++++- |
| M | flake.nix | | | 2 | ++ |
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git 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 @@ -106,6 +106,8 @@ }; }; + checks.e11sync = packages.e11sync-gunicorn.passthru.tests.simple; + apps.e11sync-gunicorn = { type = "app"; name = "e11sync-gunicorn";