2021-08-31 03:38:09 +00:00
|
|
|
|
2022-05-08 22:36:28 +00:00
|
|
|
CONFIG = ./config.nix
|
2022-09-13 10:56:08 +00:00
|
|
|
BASH = $$(nix-build --no-out-link -A pkgs.bash)/bin/bash
|
2021-08-08 13:57:45 +00:00
|
|
|
|
2022-05-08 22:36:28 +00:00
|
|
|
entrypoint:
|
2022-09-13 10:56:08 +00:00
|
|
|
nix-build -A entrypoint --arg config '(import ${CONFIG})'
|
2021-08-31 03:38:09 +00:00
|
|
|
|
2022-09-13 10:56:08 +00:00
|
|
|
install-systemd:
|
2022-10-11 16:17:21 +00:00
|
|
|
$$(nix-build -A install --arg config '(import ${CONFIG})')
|
2021-08-08 13:57:45 +00:00
|
|
|
|
2022-05-08 22:36:28 +00:00
|
|
|
test:
|
2022-09-13 10:56:08 +00:00
|
|
|
${BASH} tmp-dev-env.sh \
|
|
|
|
--run "cd src; go test ./... -count=1 -tags integration"
|
2022-05-14 21:21:52 +00:00
|
|
|
|
2022-09-13 10:56:08 +00:00
|
|
|
shell:
|
|
|
|
${BASH} tmp-dev-env.sh \
|
|
|
|
--command " \
|
|
|
|
cd src; \
|
|
|
|
echo 'Loading test data...'; \
|
|
|
|
(cd cmd/load-test-data && go run main.go); \
|
|
|
|
return; \
|
|
|
|
"
|