Only test stack build on Travis
-sudo: false
+sudo: true
language: haskell
-# Speed builds up by caching install requirements
+git:
+ depth: 5
+
+cabal: "2.4"
+
cache:
directories:
- - $HOME/.ghc
- - $HOME/.cabal
+ - "$HOME/.cabal/store"
+ - "$HOME/.stack"
+ - "$TRAVIS_BUILD_DIR/.stack-work"
+
+install:
+ # HLint check
+ - curl -sSL https://raw.github.com/ndmitchell/neil/master/misc/travis.sh | sh -s -- hlint .
+
+ - |
+ curl -sSL https://get.haskellstack.org/ | sh
+ stack --version
+ stack build \
+ --test \
+ --no-run-tests \
+ --ghc-options=-Werror
-ghc:
- - '8.0'
- - '8.2'
- - '8.4.4'
- - '8.6.5'
- - '8.8.3'
- - '8.10.1'
+script:
+ - stack test
