summaryrefslogtreecommitdiff
path: root/Makefile
blob: 50795e3c8ae5c09151a05b0fe953a97aa3243ce6 (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

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

install:
	$$(nix-build -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"

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'