stack-hpc-coveralls
stack-hpc-coveralls copied to clipboard
Coveralls support for Stack projects
We need to switch to something like optparse-applicaitive for cli, since docopt doesn't seem to be maintained anymore: https://github.com/docopt/docopt.hs/issues/33#issuecomment-750462043
``` % stack --version 1 ↵ Version 1.8.0, Git revision 735240f5b99c343e5d86fa57db0893a3fd05f32a x86_64 hpack-0.28.2 % head stack.yaml compiler: ghc-8.2.2 resolver: lts-12.0 packages: - . jobs: 1 extra-deps: - Cabal-1.24.2.0 - acid-state-0.14.3@sha256:45cd613480ce99352f4e3cadd9e00e318b1c67c184924514920194cf08202a65...
Error when running with lts-2.22 and the latest release 0.0.4.0 for ghc 7.8.4. https://travis-ci.org/TokTok/hs-toxcore-c/jobs/406072589#L1550 ``` shc: readProcess: stack "exec" "--" "ghc-pkg" "field" "toxcore" "key" "--simple-output" (exit 1): failed ```
I have the following travis config: ```yaml install: - stack ${ARGS} setup --no-terminal script: - case "$COVER" of true) stack ${ARGS} test --coverage --no-terminal ./coverage.sh ;; *) stack ${ARGS} test...
Simply having this in my stack.yaml fails the command: ``` packages: - '.' - location: git: [email protected]:creichert/reserve.git commit: 1264826d78a22a640d41daaecbfdd4763c86915a extra-dep: true ``` ``` $ stack exec -- shc --repo-token=$COVERALLS_REPO_TOKEN combined...
I separated my project into two packages and now `shc` fails with this error: ``` shc: can not find ether-0.5.0.0-HUV2NfyFRgi9DfAPlMIQvQ/Control.Monad.Trans.Ether.State.Strict in [".stack-work/dist/x86_64-linux/Cabal-1.24.1.0/hpc"] ```