summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-09-13 12:56:08 +0200
committerBrian Picciano <mediocregopher@gmail.com>2022-09-13 12:56:08 +0200
commit4f01edb9230f58ff84b0dd892c931ec8ac9aad55 (patch)
tree9c1598a3f98203913ac2548883c02a81deb33dc7 /Makefile
parent5485984e05aebde22819adebfbd5ad51475a6c21 (diff)
move src out of srv, clean up default.nix and Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 14 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 50795e3..2f864d8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,22 @@
CONFIG = ./config.nix
+BASH = $$(nix-build --no-out-link -A pkgs.bash)/bin/bash
entrypoint:
- nix-build -A entrypoint \
- --arg config '(import ${CONFIG})'
+ nix-build -A entrypoint --arg config '(import ${CONFIG})'
-install:
- $$(nix-build -A install --arg config '(import ${CONFIG})')
+install-systemd:
+ $$(nix-build --no-out-link -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"
+ ${BASH} tmp-dev-env.sh \
+ --run "cd src; go test ./... -count=1 -tags integration"
-srv.dev-shell:
- $$(nix-build --no-out-link -A pkgs.bash)/bin/bash srv-dev-env.sh \
- --command "cd srv/src; return"
-
-srv.shell:
- nix-shell -A srv.shellWithBuild --arg config '(import ${CONFIG})' \
- --command 'cd srv/src; return'
+shell:
+ ${BASH} tmp-dev-env.sh \
+ --command " \
+ cd src; \
+ echo 'Loading test data...'; \
+ (cd cmd/load-test-data && go run main.go); \
+ return; \
+ "