From 3f5d9432ffad7fd511182c6b16f0984e25e689f7 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Wed, 9 Apr 2014 17:58:55 +0200 Subject: 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. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 487e3cb98..d7f7612ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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' -- cgit v1.2.3