summaryrefslogtreecommitdiff
path: root/Makefile
blob: 2f864d815372c9ce4ac394bb6478235c8e87336c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

CONFIG = ./config.nix
BASH = $$(nix-build --no-out-link -A pkgs.bash)/bin/bash

entrypoint:
	nix-build -A entrypoint --arg config '(import ${CONFIG})'

install-systemd:
	$$(nix-build --no-out-link -A install --arg config '(import ${CONFIG})')

test:
	${BASH} tmp-dev-env.sh \
    	--run "cd src; go test ./... -count=1 -tags integration"

shell:
	${BASH} tmp-dev-env.sh \
		--command " \
			cd src; \
          	echo 'Loading test data...'; \
          	(cd cmd/load-test-data && go run main.go); \
			return; \
		"