parent
5485984e05
commit
4f01edb923
@ -1,22 +1,22 @@ |
|||||||
|
|
||||||
CONFIG = ./config.nix
|
CONFIG = ./config.nix
|
||||||
|
BASH = $$(nix-build --no-out-link -A pkgs.bash)/bin/bash
|
||||||
|
|
||||||
entrypoint: |
entrypoint: |
||||||
nix-build -A entrypoint \
|
nix-build -A entrypoint --arg config '(import ${CONFIG})'
|
||||||
--arg config '(import ${CONFIG})'
|
|
||||||
|
|
||||||
install: |
install-systemd: |
||||||
$$(nix-build -A install --arg config '(import ${CONFIG})')
|
$$(nix-build --no-out-link -A install --arg config '(import ${CONFIG})')
|
||||||
|
|
||||||
test: |
test: |
||||||
$$(nix-build --no-out-link -A pkgs.bash)/bin/bash srv-dev-env.sh \
|
${BASH} tmp-dev-env.sh \
|
||||||
--run "cd srv/src && go test ./... -count=1 -tags integration"
|
--run "cd src; go test ./... -count=1 -tags integration"
|
||||||
@echo "\nTESTS PASSED!\n"
|
|
||||||
|
|
||||||
srv.dev-shell: |
shell: |
||||||
$$(nix-build --no-out-link -A pkgs.bash)/bin/bash srv-dev-env.sh \
|
${BASH} tmp-dev-env.sh \
|
||||||
--command "cd srv/src; return"
|
--command " \
|
||||||
|
cd src; \
|
||||||
srv.shell: |
echo 'Loading test data...'; \
|
||||||
nix-shell -A srv.shellWithBuild --arg config '(import ${CONFIG})' \
|
(cd cmd/load-test-data && go run main.go); \
|
||||||
--command 'cd srv/src; return'
|
return; \
|
||||||
|
"
|
||||||
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue