Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
.PHONY: up down seed logs build test

# GNU Make for Windows dispatches recipes through cmd.exe and does not honor
# a Makefile SHELL reassignment for that dispatch, so cmd chokes on `./mvnw`
# and `chmod`. Route recipes through Git Bash explicitly instead of relying
# on `bash` resolving on PATH — on machines with WSL installed, plain `bash`
# can resolve to the WSL launcher stub ahead of Git Bash.
ifeq ($(OS),Windows_NT)
BASH := "C:/Program Files/Git/bin/bash.exe"
else
BASH := bash
endif

up:
docker compose up -d

down:
docker compose down

seed:
@chmod +x scripts/bootstrap.sh && ./scripts/bootstrap.sh
@$(BASH) -c "chmod +x scripts/bootstrap.sh && ./scripts/bootstrap.sh"

build:
./mvnw install -DskipTests
$(BASH) -c "./mvnw install -DskipTests"

test:
./mvnw verify
$(BASH) -c "./mvnw verify"

logs:
docker compose logs -f