-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (23 loc) · 963 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
.PHONY: build
build:
@docker buildx build -t reductionist .
.PHONY: docs
docs:
@docker buildx build --build-arg PROFILE=dev --target builder -t reductionist-test .
@docker run --rm -e RUSTDOCFLAGS="-D warnings" reductionist-test cargo doc --no-deps
.PHONY: lint
lint:
@docker buildx build --build-arg PROFILE=dev --target builder -t reductionist-test .
@docker run --rm reductionist-test cargo check --color always
@docker run --rm reductionist-test bash -c 'rustup component add rustfmt && cargo fmt -- --color always --check'
@docker run --rm reductionist-test bash -c 'rustup component add clippy && cargo clippy --all-targets -- -D warnings'
.PHONY: test
test:
@docker buildx build --build-arg PROFILE=dev --target builder -t reductionist-test .
@docker run --rm reductionist-test cargo test --color always
.PHONY: run
run:
@docker run -it --detach --rm --net=host --name reductionist reductionist
.PHONY: stop
stop:
@docker stop reductionist