Add bisect-ppx and coveralls

This commit is contained in:
Rijnard van Tonder 2019-04-27 20:03:27 -04:00 committed by GitHub
parent fe4fd72bb3
commit 36ef457e43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 21 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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))

View File

@ -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))

View File

@ -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))

View File

@ -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))

View File

@ -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))

View File

@ -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))