Skip to content

Commit

Permalink
Merge pull request #73 from kc284/master
Browse files Browse the repository at this point in the history
Corrected coverage rewriter.
  • Loading branch information
lindig committed Jan 16, 2019
2 parents 4d24e76 + 43d061b commit 1c7911c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 34 deletions.
30 changes: 0 additions & 30 deletions .coverage.sh

This file was deleted.

6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -2,16 +2,20 @@ language: c
sudo: required
install:
- wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-docker.sh
- wget https://raw.githubusercontent.com/xapi-project/xapi-travis-scripts/master/coverage.sh
script:
- bash -ex .travis-docker.sh
services:
- docker
env:
global:
- OCAML_VERSION=4.07
- PINS="xen-api-client:. xen-api-client-lwt:. xen-api-client-async:."
- PACKAGE=xen-api-client
- DISTRO="debian-9"
matrix:
- BASE_REMOTE=git://github.com/xapi-project/xs-opam POST_INSTALL_HOOK="env TRAVIS=$TRAVIS TRAVIS_JOB_ID=$TRAVIS_JOB_ID bash -ex .coverage.sh"
- BASE_REMOTE=git://github.com/xapi-project/xs-opam \
POST_INSTALL_HOOK="env TRAVIS=$TRAVIS TRAVIS_JOB_ID=$TRAVIS_JOB_ID bash -ex coverage.sh"
- PACKAGE=xen-api-client-async BASE_REMOTE=git://github.com/xapi-project/xs-opam POST_INSTALL_HOOK="make async-examples"
- PACKAGE=xen-api-client-lwt BASE_REMOTE=git://github.com/xapi-project/xs-opam POST_INSTALL_HOOL="make lwt-examples"
- EXTRA_REMOTES=git://github.com/xapi-project/xs-opam
Expand Down
5 changes: 2 additions & 3 deletions lib/dune
Expand Up @@ -2,7 +2,7 @@

let coverage_rewriter =
match Sys.getenv "BISECT_ENABLE" with
| "YES" -> "(preprocess (pps bisect_ppx))"
| "YES" -> "bisect_ppx"
| _ -> ""
| exception Not_found -> ""

Expand All @@ -13,8 +13,7 @@ let () = Printf.ksprintf Jbuild_plugin.V1.send {|
(public_name xen-api-client)
(flags (:standard -w -39))
(wrapped false)
(preprocess (pps ppx_deriving_rpc))
%s
(preprocess (pps ppx_deriving_rpc %s))
(libraries
astring
cohttp
Expand Down

0 comments on commit 1c7911c

Please sign in to comment.