Add ghc-option -Werror to all builds in .travis.yml
parent
d8097f2862
commit
5dac6dd7f2
|
@ -250,6 +250,8 @@ install:
|
||||||
cabal --version
|
cabal --version
|
||||||
travis_retry cabal update -v
|
travis_retry cabal update -v
|
||||||
echo 'packages: .' > cabal.project
|
echo 'packages: .' > cabal.project
|
||||||
|
echo 'package brittany' > cabal.project.local
|
||||||
|
echo ' ghc-options: -Werror' >> cabal.project.local
|
||||||
rm -f cabal.project.freeze
|
rm -f cabal.project.freeze
|
||||||
cabal new-build -j$JOBS --enable-test --enable-benchmarks --dep
|
cabal new-build -j$JOBS --enable-test --enable-benchmarks --dep
|
||||||
cabal new-build -j$JOBS --disable-tests --disable-benchmarks --dep
|
cabal new-build -j$JOBS --disable-tests --disable-benchmarks --dep
|
||||||
|
@ -262,12 +264,12 @@ script:
|
||||||
set -ex
|
set -ex
|
||||||
case "$BUILD" in
|
case "$BUILD" in
|
||||||
stack)
|
stack)
|
||||||
better_wait stack --no-terminal $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps --ghc-options="-j1 +RTS -M500M -RTS"
|
better_wait stack --no-terminal $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps --ghc-options="-j1 +RTS -M500M -RTS -Werror"
|
||||||
;;
|
;;
|
||||||
cabal)
|
cabal)
|
||||||
if [ -f configure.ac ]; then autoreconf -i; fi
|
if [ -f configure.ac ]; then autoreconf -i; fi
|
||||||
cabal configure --enable-tests --enable-benchmarks -v # -v2 provides useful information for debugging
|
cabal configure --enable-tests --enable-benchmarks -v # -v2 provides useful information for debugging
|
||||||
better_wait cabal build -j$JOBS --ghc-options="-j1 +RTS -M500M -RTS" # this builds all libraries and executables (including tests/benchmarks)
|
better_wait cabal build -j$JOBS --ghc-options="-j1 +RTS -M500M -RTS -Werror" # this builds all libraries and executables (including tests/benchmarks)
|
||||||
cabal test
|
cabal test
|
||||||
;;
|
;;
|
||||||
cabaldist)
|
cabaldist)
|
||||||
|
|
Loading…
Reference in New Issue