parent
5485984e05
commit
4f01edb923
@ -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; \
|
||||
"
|
||||
|
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