-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (30 loc) · 1.15 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
APP=uring
CARGO_VSN=$(shell grep '^version' Cargo.toml | sed -e 's/.*=[^"]*"//' -e 's/"$$//')
VSN=$(CARGO_VSN)
YEAR=2018-2019
help:
@echo "This makefile wraps the tasks:"
@echo " tarpaulin - runs code coverage tests via tarpaulin"
force:
true
chk_copyright:
@for f in `find . -name '*.rs' | grep -v '/target'`; do cat $$f | grep 'Copyright 2018-2020, Wayfair GmbH' > /dev/null || (echo "##[error] No copyright in $$f") done
chk_copyright_ci:
@for f in `find . -name '*.rs' | grep -v '/target'`; do cat $$f | grep 'Copyright 2018-2020, Wayfair GmbH' > /dev/null || exit 1; done
chk_unwrap:
@./checks/safety.sh -u
chk_unwrap_ci:
@./checks/safety.sh -u
chk_panic:
@./checks/safety.sh -p
chk_panic_ci:
@./checks/safety.sh -p
docserve:
mkdocs serve
tarpaulin:
@docker build . -f docker/Dockerfile -t uring-tarpaulin
@docker run --privileged --mount type=bind,source="$$(pwd)",target=/code -t uring-tarpaulin
@echo "To view run: pycobertura show --format html --output coverage.html cobertura.xml && open coverage.html"
@echo " pycobertura can be installed via pip3 install pycobertura"
dep-list:
@cargo tree --all | sed -e 's/[^a-z]*\([a-z]\)/\1/' | sort -u