summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-12-27 23:41:31 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2017-12-27 23:41:31 -0800
commitbbf1192b86547710adaa306811ecc2aa557702de (patch)
treec851d24c8a2d70eb52e0def59d7a42f848d4e95c /.travis.yml
parent64b72e68a0cf8abfad3bb19d5ef45d3f1939b1c2 (diff)
Travis: do a stack build with lts-9. Use system ghc.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 9c4177357..04aac27f8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -61,6 +61,10 @@ matrix:
# The Stack builds. We can pass in arbitrary Stack arguments via the ARGS
# variable, such as using --stack-yaml to point to a different file.
+ - env: BUILD=stack ARGS="--stack-yaml stack.lts9.yaml" OPTS="-Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror"
+ compiler: ": #stack 8.0.2"
+ addons: {apt: {packages: [ghc-8.0.2], sources: [hvr-ghc]}}
+
- env: BUILD=stack ARGS="--resolver lts-10" OPTS="-Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror"
compiler: ": #stack 8.2.2"
addons: {apt: {packages: [ghc-8.2.2], sources: [hvr-ghc]}}
@@ -107,6 +111,7 @@ install:
case "$BUILD" in
stack)
ulimit -n 4096
+ stack config set system-ghc --global true
stack --no-terminal --install-ghc $ARGS build --only-dependencies --fast --flag 'pandoc:embed_data_files' --flag 'aeson:fast' --jobs 2
;;
cabal)
@@ -121,6 +126,7 @@ script:
case "$BUILD" in
stack)
ulimit -n 4096
+ stack config set system-ghc --global true
stack --no-terminal $ARGS test --fast --flag 'aeson:fast' --flag pandoc:embed_data_files --haddock --no-haddock-deps --ghc-options="$OPTS"
;;
cabal)