forked from Kakadu/zanuda
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 821 Bytes
/
Makefile
File metadata and controls
42 lines (32 loc) · 821 Bytes
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
42
.PHONY: all release watch test promote install
all:
dune build
release:
dune build --profile release
watch:
dune test -w
test:
dune build && dune test
promote:
dune test --auto-promote
install:
dune build @install
dune install
uninstall:
dune build @install
dune uninstall
clean:
@dune clean
@$(RM) -r _coverage
TEST_COV_D = /tmp/zanudacov
COVERAGE_OPTS = --coverage-path $(TEST_COV_D) --expect src/ --expect review/
.PHONY: test_coverage coverage
test_coverage: coverage
coverage:
$(RM) -r $(TEST_COV_D)
mkdir -p $(TEST_COV_D)
BISECT_FILE=$(TEST_COV_D)/zanuda dune runtest --no-print-directory \
--instrument-with bisect_ppx --force
bisect-ppx-report html $(COVERAGE_OPTS)
bisect-ppx-report summary $(COVERAGE_OPTS)
@echo "Use 'xdg-open _coverage/index.html' to see coverage report"