mediocre-blog/Makefile

23 lines
570 B
Makefile
Raw Normal View History

CONFIG = ./config.nix
entrypoint:
nix-build -A entrypoint \
2022-09-13 10:25:45 +00:00
--arg config '(import ${CONFIG})'
install:
2022-09-13 10:25:45 +00:00
$$(nix-build -A install --arg config '(import ${CONFIG})')
test:
$$(nix-build --no-out-link -A pkgs.bash)/bin/bash srv-dev-env.sh \
--run "cd srv/src && go test ./... -count=1 -tags integration"
@echo "\nTESTS PASSED!\n"
srv.dev-shell:
$$(nix-build --no-out-link -A pkgs.bash)/bin/bash srv-dev-env.sh \
--command "cd srv/src; return"
srv.shell:
2022-09-13 10:25:45 +00:00
nix-shell -A srv.shellWithBuild --arg config '(import ${CONFIG})' \
--command 'cd srv/src; return'