@@ -13,11 +13,11 @@ addons:
1313# The different configurations we want to test. You could also do things like
1414# change flags or use --stack-yaml to point to a different file.
1515env:
16−- ARGS=""
17−- ARGS="--resolver lts-2.22 --flag time-locale-compat:-old-locale"
18−- ARGS="--resolver lts-3"
19−- ARGS="--resolver lts"
20−- ARGS="--resolver nightly"
16+- ARGS="" BUILDFLAGS=""
17+- ARGS="--resolver lts-2.22" BUILDFLAGS="--flag time-locale-compat:-old-locale"
18+- ARGS="--resolver lts-3" BUILDFLAGS=""
19+- ARGS="--resolver lts" BUILDFLAGS=""
20+- ARGS="--resolver nightly" BUILDFLAGS=""
2121
2222before_install:
2323# Download and unpack the stack executable
@@ -36,9 +36,9 @@ install:
3636# around some quirks in Travis's terminal implementation.
3737script:
3838 - stack $ARGS setup
39− - stack $ARGS --no-terminal test --haddock --no-haddock-deps
39+ - stack $ARGS $BUILDFLAGS --no-terminal test --haddock --no-haddock-deps
4040 - stack $ARGS bench
41− - stack $ARGS build
41+ - stack $ARGS $BUILDFLAGS build
4242 - for f in katip/examples/*.hs; do stack $ARGS ghc -- -Wall -Werror $f -o /dev/null; done
4343 - stack $ARGS sdist
4444