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.
commit3f5d9432ffad7fd511182c6b16f0984e25e689f7
authorAlbert Krewinkel <tarleb@moltkeplatz.de>
dateWed 9 Apr 2014, 17:58 (13 years ago)
parente555a57
.travis.yml+1−1
@@ -5,4 +5,4 @@ before_install:
55install:
66 - cabal-dev install-deps --enable-tests
77script:
8− - 'cabal-dev configure --enable-tests && cabal-dev build && cabal-dev test'
8+ - 'cabal-dev configure --enable-tests && cabal-dev build --ghc-options=-Werror && cabal-dev test'