killy971 / hpc-coveralls

coveralls.io support for haskell code coverage with hpc
http://hackage.haskell.org/package/hpc-coveralls
BSD 3-Clause "New" or "Revised" License
60 stars 20 forks source link

Allow run-cabal-test to specify cabal executable name #8

Closed killy971 closed 10 years ago

killy971 commented 10 years ago

Introduce an optional argument to the run-cabal-test command which will allow to specify a custom command name to use instead of cabal. The argument will be named --cabal-name, of default value cabal.

This will simplify Travis setups such as the ones based on multi-ghc-travis, for example to replace:

  - ln -s /usr/bin/cabal-1.18 ~/.cabal/bin/cabal
  - run-cabal-test

by:

  - run-cabal-test --cabal-name=cabal-1.18
killy971 commented 10 years ago

Example to use cabal-1.18 instead of cabal:

run-cabal-test --cabal-name=cabal-1.18

Original cabal test options can still be used, as in the following example:

run-cabal-test --cabal-name=cabal-1.18 --show-details=always

The current implementation doesn't rely on the cmdargs package at the moment, for simplification.