Skip to content

Commit

Permalink
Travis build against multiple GHC
Browse files Browse the repository at this point in the history
  • Loading branch information
4e6 committed Sep 26, 2017
1 parent cdcd5ba commit ab0b15a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ sudo: false
# Do not choose a language; we provide our own build tools.
language: generic

env:
- STACK_YAML=stack.yaml
- STACK_YAML=ghc-802.yaml
- STACK_YAML=ghc-821.yaml

# Caching so the next build will be fast too.
cache:
directories:
Expand All @@ -21,10 +26,6 @@ before_install:
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'

install:
# Build dependencies
- stack --no-terminal --install-ghc build --only-dependencies

script:
# Build the package, its tests, and its docs and run the tests
- stack --no-terminal test --haddock --no-haddock-deps
- stack --no-terminal --install-ghc test --haddock --no-haddock-deps

0 comments on commit ab0b15a

Please sign in to comment.