1
Fork 0

add nix flake check

This commit is contained in:
Motiejus Jakštys 2024-01-13 18:58:43 +02:00
parent e8deac6ee6
commit c2c980e31d
2 changed files with 10 additions and 1 deletions

View File

@ -1,7 +1,14 @@
# unit tests independent of your environment. Aspires to be the default CI job.
.PHONY: check .PHONY: check
test: 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 .PHONY: run-gunicorn
run-gunicorn: run-gunicorn:
nix run .#e11sync-gunicorn nix run .#e11sync-gunicorn

View File

@ -106,6 +106,8 @@
}; };
}; };
checks.e11sync = packages.e11sync-gunicorn.passthru.tests.simple;
apps.e11sync-gunicorn = { apps.e11sync-gunicorn = {
type = "app"; type = "app";
name = "e11sync-gunicorn"; name = "e11sync-gunicorn";