Force failure of a Travis build if GHC produces warnings
Pandoc should, as stated in CONTRIBUTING.md, always compile without warnings. This patch forces GHC to treat warnings like errors during Travis builds, making it possible to catch mistakes (like missing top-level type definitions) early.
This commit is contained in:
parent
e555a5703d
commit
3f5d9432ff
1 changed files with 1 additions and 1 deletions
|
@ -5,4 +5,4 @@ before_install:
|
|||
install:
|
||||
- cabal-dev install-deps --enable-tests
|
||||
script:
|
||||
- 'cabal-dev configure --enable-tests && cabal-dev build && cabal-dev test'
|
||||
- 'cabal-dev configure --enable-tests && cabal-dev build --ghc-options=-Werror && cabal-dev test'
|
||||
|
|
Loading…
Add table
Reference in a new issue