hpc-coveralls
hpc-coveralls copied to clipboard
coveralls.io support for haskell code coverage with hpc
[stack](https://github.com/commercialhaskell/stack) is the new build tool that's better than cabal-install. It uses a different directory layout, so hpc-coveralls currently fails: ``` Couldn't find the hpc data directory Couldn't find the...
``` bash $ ~/.cabal/bin/hpc-coveralls perf-RBM rbm-0.1 test-RBM test-Matrix test-MLP --display-report --repo-token=15KpYJ4FssvAiuhg5OBivEQbPYPn6aMSW Couldn't find the file dist/hpc/vanilla/tix/rbm-0.1/rbm-0.tix ``` shouldn't it be looking for `rbm-0.1`? Here is my build log for reference:...
Example error message: ``` hpc: found 2 instances of Util in ["./.hpc","./dist/hpc/mix/test-two","./dist/hpc/mix/test-one","./dist/hpc/mix/hpc-coveralls-testing-0.1.0.0"] ``` TODO: report this to the GHC development team.
Related to #36 Make sure this can actually work.
Example `.travis.yml`: Relevant part of the `env` section ``` yaml env: - ghc=7.6.3 cabal=1.18 - ghc=7.8.3 cabal=1.18 coverage=1 ``` Revelant part of the `install` section: ``` yaml - cabal configure...
Retrieving the total coverage percentage from the report on coveralls.io is the most correct way to proceed, but it involves an extra curl query and the associated processing of possible...
Not sure if things can be improved, but at least the documentation could suggest some instructions to only run hpc-coveralls when using 7.8.x version of GHC when running matrix builds.