Open mizunashi-mana opened 7 years ago
Someone created a pull request to add a similar feature to codecov-haskell: guillaume-nargeot/codecov-haskell/pull/12 That change seems simpler, but I can't judge yet whether it provides the same flexibility as your change...
@guillaume-nargeot OK, I modified my changes to refer to guillaume-nargeot/codecov-haskell#12
My changes provide below searching flows:
use-stack-cov
enabled, only using stack coverage reportstix-dir
/mix-dir
provided, use this directoriesdist/hpc
/dist/hpc/vanilla
)stack path --local-hpc-dir
)And, to detect stack:
stack --version
, then if DoesNotExistError raised, failed to use stackstack path --project-root
, then if this is not a stack project, failed to use stackCan you merge this? I am currently trying to move the hpc generated by stack into cabal's place, but it is failing horribly. Or just some pointer toward what I am doing wrong will help, thx https://travis-ci.org/ThoughtWorksInc/DeepDarkFantasy#L779
@MarisaKirisame While we wait on it being merged, I just built it in a fork:
Install binary (I did it once in my Docker image):
wget -qO- https://github.com/jBugman/hpc-coveralls/releases/download/stack/coveralls.tar.gz | \
tar xvz -C {DIR_IN_A_PATH}
Upload report:
timeout 10
hpc-coveralls {TEST_SUITE_NAME}
--tix-dir=$(stack path --local-hpc-root)/{LIBRARY_NAME}
--mix-dir=$(stack path --dist-dir)/hpc
--repo-token=$COVERALLS_TOKEN
|| true
Timeout is there because it just hangs after a successful upload for a more than a minute for some reason.
Thx, I had already used stack-hpc-coveralls, it is working well. @jBugman
resolve #47
Notice