diff --git a/travis/run.sh b/travis/run.sh index 1ca949158..3de12da9e 100755 --- a/travis/run.sh +++ b/travis/run.sh @@ -5,7 +5,16 @@ set -euxo pipefail if [ "$BACKEND" = "none" ] then PACKAGES=$(stack --install-ghc query locals | grep '^ *path' | sed 's@^ *path:@@' | grep -v 'persistent-test' ) - exec stack $ARGS --no-terminal test --pedantic $PACKAGES + + PEDANTIC="--pedantic" + # Turn off pedantic for lts-7, due to the sometimes invalid + # redundant constraint warnings. + if [ "$ARGS" = "--resolver lts-7" ] + then + PEDANTIC="" + fi + + exec stack $ARGS --no-terminal test $PEDANTIC $PACKAGES else if [ "$BACKEND" = "postgresql" ] then