@@ -4,6 +4,11 @@ sudo: false
44# Do not choose a language; we provide our own build tools.
55language: generic
66
7+env:
8+ - STACK_YAML=stack.yaml
9+ - STACK_YAML=ghc-802.yaml
10+ - STACK_YAML=ghc-821.yaml
11+
712# Caching so the next build will be fast too.
813cache:
914 directories:
@@ -21,10 +26,6 @@ before_install:
2126- export PATH=$HOME/.local/bin:$PATH
2227- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
2328
24−install:
25−# Build dependencies
26−- stack --no-terminal --install-ghc build --only-dependencies
27−
2829script:
2930# Build the package, its tests, and its docs and run the tests
30−- stack --no-terminal test --haddock --no-haddock-deps
31+- stack --no-terminal --install-ghc test --haddock --no-haddock-deps