19 lines
424 B
Makefile
19 lines
424 B
Makefile
image := "git.kemitix.net/kemitix/rust:test"
|
|
|
|
build:
|
|
docker build . -t {{ image }}
|
|
|
|
test: build
|
|
docker run --rm -v $PWD:/app/ {{ image }} cargo test
|
|
|
|
clippy: build
|
|
docker run --rm -v $PWD:/app/ {{ image }} cargo clippy
|
|
|
|
run: build
|
|
docker run --rm -v $PWD:/app/ {{ image }} cargo run
|
|
|
|
fmt: build
|
|
docker run --rm -v $PWD:/app/ {{ image }} cargo fmt
|
|
|
|
shell: build
|
|
docker run --rm -it -v $PWD:/app/ {{ image }} bash
|