Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document simpler way to enable/disable hpc-coveralls/coverage based on environment variables #35

Open
killy971 opened this issue Jan 24, 2015 · 0 comments

Comments

@killy971
Copy link
Owner

Example .travis.yml:

Relevant part of the env section

env:
  - ghc=7.6.3  cabal=1.18
  - ghc=7.8.3  cabal=1.18 coverage=1

Revelant part of the install section:

- cabal configure --enable-tests $([ -n "$coverage" ] && echo "--enable-library-coverage")

after_script section:

after_script:
  - "[ -n ¥"$coverage¥" ] && hpc-coveralls [test-suite-name] [options] || true"

Also, update README: the flag to enable coverage in the latest version of cabal/ghc is --enable-coverage.

@killy971 killy971 self-assigned this Jan 24, 2015
@killy971 killy971 added the ready label Jan 26, 2015
@killy971 killy971 removed their assignment Feb 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant