2025-01-14 20:59:32 +00:00
|
|
|
image := "git.kemitix.get/kemitix/rust:test"
|
|
|
|
|
2025-01-14 20:09:30 +00:00
|
|
|
build:
|
2025-01-14 20:59:32 +00:00
|
|
|
docker build . -t {{ image }}
|
|
|
|
|
|
|
|
test: build
|
|
|
|
docker run --rm -v $PWD:/app/ {{ image }} cargo test
|
|
|
|
|
2025-01-14 20:59:32 +00:00
|
|
|
clippy: build
|
|
|
|
docker run --rm -v $PWD:/app/ {{ image }} cargo clippy
|
|
|
|
|
2025-01-14 20:52:01 +00:00
|
|
|
run: build
|
|
|
|
docker run --rm -v $PWD:/app/ {{ image }} cargo run
|
|
|
|
|
2025-01-14 20:59:32 +00:00
|
|
|
shell: build
|
|
|
|
docker run --rm -it -v $PWD:/app/ {{ image }} bash
|