Skip to content

Commit 0f165d2

Browse files
committed
Use bisect_ppx backend
1 parent 5d664c1 commit 0f165d2

File tree

11 files changed

+13
-20
lines changed

11 files changed

+13
-20
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ jobs:
2929
- name: Install dependencies
3030
run: |
3131
eval $(opam env)
32-
opam install . --deps-only --with-test --yes
33-
opam install bisect_ppx --yes
32+
opam install . --deps-only --with-test --with-dev-setup --yes
3433
opam install ppx_deriving --yes
3534
3635
- name: Build

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ runbin:
2626

2727
coverage:
2828
@mkdir -p _coverage
29-
@export BISECT_FILE=$$(pwd)/_coverage/bisect && \
30-
export BISECT_ENABLE=yes && \
31-
dune runtest --instrument-with bisect_ppx --force
29+
@rm -f _coverage/bisect*.coverage
30+
@BISECT_FILE=$$(pwd)/_coverage/bisect BISECT_ENABLE=yes dune runtest --instrument-with bisect_ppx --force
3231
@echo ""
3332
@echo "Coverage Summary:"
3433
@echo "================"

bin/dune

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
(executables
22
(names main)
3-
(libraries liquid_ml base core)
4-
(preprocess
5-
(pps bisect_ppx --conditional)))
3+
(libraries liquid_ml base core))

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
(lang dune 2.5)
1+
(lang dune 2.7)
22
(name liquid)

liquid_interpreter/dune

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
(library
22
(public_name liquid_interpreter)
33
(libraries base core stdio re2 liquid_syntax liquid_parser liquid_std)
4-
(preprocess
5-
(pps bisect_ppx --conditional)))
4+
(instrumentation (backend bisect_ppx)))

liquid_ml.opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ depends: [
2424
"liquid_std" { = version }
2525
"liquid_interpreter" { = version }
2626
"alcotest" { >= "1.5.0" & with-test }
27+
"bisect_ppx" { >= "2.0.0" & with-dev-setup }
2728
]
2829
build: [
2930
["dune" "build" "-p" name "-j" jobs]

liquid_ml/dune

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
(library
22
(public_name liquid_ml)
33
(libraries base core stdio liquid_syntax liquid_parser liquid_interpreter)
4-
(preprocess
5-
(pps bisect_ppx --conditional)))
4+
(instrumentation (backend bisect_ppx)))

liquid_parser/dune

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
(library
22
(public_name liquid_parser)
33
(libraries base core stdio re2 liquid_syntax)
4-
(preprocess
5-
(pps bisect_ppx --conditional)))
4+
(instrumentation (backend bisect_ppx)))

liquid_std/dune

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
(public_name liquid_std)
33
(libraries base core stdio re2 calendar base64 sha str liquid_syntax
44
liquid_parser)
5-
(preprocess
6-
(pps bisect_ppx --conditional)))
5+
(instrumentation (backend bisect_ppx)))

liquid_syntax/dune

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
(public_name liquid_syntax)
33
(libraries base core stdio re2 calendar ppx_deriving.runtime)
44
(preprocess
5-
(pps bisect_ppx --conditional ppx_deriving.show)))
5+
(pps ppx_deriving.show))
6+
(instrumentation (backend bisect_ppx)))

0 commit comments

Comments
 (0)