mirror of
https://github.com/comby-tools/comby.git
synced 2024-09-11 13:25:36 +03:00
Add bisect-ppx and coveralls
This commit is contained in:
parent
fe4fd72bb3
commit
36ef457e43
@ -332,6 +332,7 @@ opam install pcre
|
||||
opam install oasis
|
||||
opam install tls
|
||||
opam install camlzip
|
||||
opam install bisect_ppx
|
||||
|
||||
git clone https://github.com/comby-tools/mparser
|
||||
cd mparser
|
||||
@ -343,3 +344,12 @@ cd -
|
||||
|
||||
make
|
||||
make test
|
||||
|
||||
echo $TRAVIS_JOB_ID
|
||||
bisect-ppx-report \
|
||||
-I _build/default/ \
|
||||
-coveralls coverage.json \
|
||||
-service-name travis-ci \
|
||||
-service-job-id $TRAVIS_JOB_ID \
|
||||
`find . -name 'bisect*.out'`
|
||||
curl -L -F json_file=@./coverage.json https://coveralls.io/api/v1/jobs
|
||||
|
5
Makefile
5
Makefile
@ -1,7 +1,7 @@
|
||||
all: build comby comby-server
|
||||
|
||||
build:
|
||||
@dune build --profile dev
|
||||
@BISECT_ENABLE=yes dune build --profile dev
|
||||
|
||||
release:
|
||||
@dune build --profile release
|
||||
@ -21,6 +21,9 @@ doc:
|
||||
test:
|
||||
@dune runtest
|
||||
|
||||
coverage:
|
||||
@bisect-ppx-report -I _build/default/ -html coverage/ `find . -name 'bisect*.out'`
|
||||
|
||||
clean:
|
||||
@dune clean
|
||||
|
||||
|
2
lib/dune
2
lib/dune
@ -1,7 +1,7 @@
|
||||
(library
|
||||
(name comby)
|
||||
(public_name comby)
|
||||
(preprocess (pps ppx_deriving.show ppx_deriving.eq ppx_sexp_conv))
|
||||
(preprocess (pps ppx_deriving.show ppx_deriving.eq ppx_sexp_conv bisect_ppx -conditional -no-comment-parsing))
|
||||
(libraries
|
||||
ppxlib
|
||||
core
|
||||
|
@ -1,5 +1,5 @@
|
||||
(library
|
||||
(name language)
|
||||
(public_name comby.language)
|
||||
(preprocess (pps ppx_deriving.show ppx_sexp_conv ppx_sexp_message ppx_deriving_yojson))
|
||||
(preprocess (pps ppx_deriving.show ppx_sexp_conv ppx_sexp_message ppx_deriving_yojson bisect_ppx -conditional -no-comment-parsing))
|
||||
(libraries comby.parsers comby.match comby.rewriter comby.matchers ppxlib core mparser mparser.pcre yojson ppx_deriving_yojson ppx_deriving_yojson.runtime))
|
||||
|
@ -1,5 +1,5 @@
|
||||
(library
|
||||
(name match)
|
||||
(public_name comby.match)
|
||||
(preprocess (pps ppx_deriving.show ppx_deriving.eq ppx_sexp_conv ppx_sexp_message ppx_deriving_yojson))
|
||||
(preprocess (pps ppx_deriving.show ppx_deriving.eq ppx_sexp_conv ppx_sexp_message ppx_deriving_yojson bisect_ppx -conditional -no-comment-parsing))
|
||||
(libraries comby.parsers ppxlib core mparser mparser.pcre yojson ppx_deriving_yojson ppx_deriving_yojson.runtime))
|
||||
|
@ -1,5 +1,5 @@
|
||||
(library
|
||||
(name matchers)
|
||||
(public_name comby.matchers)
|
||||
(preprocess (pps ppx_deriving.show ppx_sexp_conv ppx_sexp_message))
|
||||
(preprocess (pps ppx_deriving.show ppx_sexp_conv ppx_sexp_message bisect_ppx -conditional -no-comment-parsing))
|
||||
(libraries comby.parsers comby.match ppxlib core mparser mparser.pcre))
|
||||
|
@ -1,5 +1,5 @@
|
||||
(library
|
||||
(name parsers)
|
||||
(public_name comby.parsers)
|
||||
(preprocess (pps ppx_deriving.show ppx_sexp_conv))
|
||||
(preprocess (pps ppx_deriving.show ppx_sexp_conv bisect_ppx -conditional -no-comment-parsing))
|
||||
(libraries ppxlib core mparser mparser.pcre))
|
||||
|
@ -1,5 +1,5 @@
|
||||
(library
|
||||
(name rewriter)
|
||||
(public_name comby.rewriter)
|
||||
(preprocess (pps ppx_deriving.show ppx_sexp_conv ppx_deriving_yojson))
|
||||
(preprocess (pps ppx_deriving.show ppx_sexp_conv ppx_deriving_yojson bisect_ppx -conditional -no-comment-parsing))
|
||||
(libraries comby.matchers ppxlib core))
|
||||
|
@ -1,5 +1,5 @@
|
||||
(library
|
||||
(name statistics)
|
||||
(public_name comby.statistics)
|
||||
(preprocess (pps ppx_deriving.show ppx_sexp_conv ppx_sexp_message ppx_deriving_yojson))
|
||||
(preprocess (pps ppx_deriving.show ppx_sexp_conv ppx_sexp_message ppx_deriving_yojson bisect_ppx -conditional -no-comment-parsing))
|
||||
(libraries ppxlib core yojson ppx_deriving_yojson ppx_deriving_yojson.runtime))
|
||||
|
Loading…
Reference in New Issue
Block a user