This repository has been archived on 2026-02-12. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
swift-duct-calc/justfile
Michael Housh a51e1b34d0
All checks were successful
CI / Linux Tests (push) Successful in 5m24s
feat: Adds project database tests.
2026-01-30 14:02:58 -05:00

34 lines
825 B
Makefile

docker_image := "ductcalc"
docker_tag := "latest"
clean:
rm -rf .build
install-deps:
@curl -sL daisyui.com/fast | bash
run-css:
@./tailwindcss -i Public/css/main.css -o Public/css/output.css --watch
run:
@swift run App serve --log debug
build-docker file="docker/Dockerfile":
@docker build -f {{file}} -t {{docker_image}}:{{docker_tag}} .
run-docker:
@docker run -it --rm -v $PWD:/app -p 8080:8080 {{docker_image}}:{{docker_tag}}
test-docker: (build-docker "docker/Dockerfile.test")
@docker run --rm {{docker_image}}:{{docker_tag}} swift test
code-coverage:
@llvm-cov report \
"$(find $(swift build --show-bin-path) -name '*.xctest')" \
-instr-profile=.build/debug/codecov/default.profdata \
-ignore-filename-regex=".build|Tests" \
-use-color
test *ARGS:
@swift test --enable-code-coverage {{ARGS}}