Skip to content

Commit

Permalink
Turn off --pedantic for lts-7
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Feb 1, 2018
1 parent 462de25 commit 49cd445
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion travis/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49cd445

Please sign in to comment.