-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
99 lines (75 loc) · 1.97 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
BROWSER = firefox
NAME=pasv
TEST_COV_D = /tmp/pasv
# All the _mac versions are for GH actions to do a sequential build.
.PHONY: build
build:
dune build
.PHONY: build_mac
build_mac:
dune build -j 1
.PHONY: build_release
build_release:
dune build -p $(NAME)
.PHONY: build_release_mac
build_release_mac:
dune build -p $(NAME) -j 1
.PHONY: build_static
build_static:
dune build --profile=static
.PHONY: clean
clean:
dune clean
.PHONY: install
install: build_release
dune install -p $(NAME)
.PHONY: install_mac
install_mac: build_release_mac
dune install -p $(NAME) -j 1
.PHONY: test_slow
test_slow: build
dune test test/slow
.PHONY: test_slow_mac
test_slow_mac: build_mac
dune test -j 1 test/slow
.PHONY: test_slow_static
test_slow_static: build
dune test test/slow --profile=static
.PHONY: test_medium
test_medium: build
dune test test/medium
.PHONY: test_medium_mac
test_medium_mac: build_mac
dune test -j 1 test/medium
.PHONY: test_medium_static
test_medium_static: build
dune test test/medium --profile=static
.PHONY: test_fast
test_fast: build
dune test test/fast
.PHONY: test_fast_mac
test_fast_mac: build_mac
dune test -j 1 test/fast
.PHONY: test_fast_static
test_fast_static: build
dune test test/fast --profile=static
.PHONY: test
test: test_fast test_medium test_slow
.PHONY: test_mac
test_mac: test_fast_mac test_medium_mac test_slow_mac
.PHONY: test_static
test_static: test_fast_static test_medium_static test_slow_static
.PHONY: test_coverage
test_coverage:
if [ -d $(TEST_COV_D) ]; then rm -r $(TEST_COV_D); fi
mkdir -p $(TEST_COV_D)
BISECT_FILE=$(TEST_COV_D)/$(NAME) dune runtest --no-print-directory \
--instrument-with bisect_ppx --force
bisect-ppx-report html --coverage-path $(TEST_COV_D)
bisect-ppx-report summary --coverage-path $(TEST_COV_D)
.PHONY: test_coverage_open
test_coverage_open: test_coverage
$(BROWSER) _coverage/index.html
.PHONY: send_coverage
send_coverage: test_coverage
bisect-ppx-report send-to Coveralls --coverage-path $(TEST_COV_D)