-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
32 lines (25 loc) · 804 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
build:
mkdir -p bin/ && go build -o bin/ .
test:
go test -v
coverage:
go test -v -covermode=count -coverprofile=coverage.out
flake:
nix build -L .#packages.x86_64-linux.default
# Updates nixpkgs, Go module deps, and runs tests.
update-deps:
go get -u github.com/Masterminds/sprig/v3 github.com/compose-spec/compose-go/v2 github.com/joho/godotenv
go mod tidy
nix flake lock --update-input nixpkgs
make flake
make shell
make test
# Pulls in all build dependencies into a shell.
shell:
nix develop -c zsh
# This brings up two NixOS VMs - one for Docker and one for Podman - and ensures that
# the compose2nix generated config works when loaded into NixOS.
nixos-test:
./nixos-test/update.sh
nix build -L .#checks.x86_64-linux.integrationTest
.PHONY: build coverage flake nixos-test test