polysemy/.travis.yml
Sandy Maguire c3d3cc24f8
Stop using stack in Travis (#121)
The travis cache appears to be broken (probably due to the nightly stack?), but it just means CI takes like half an hour now. Since I already build on stack, I'm pretty sure it's fine --- also this will give a sanity check against accidentally breaking cabal build plans.

This improves CI times from ~30 minutes down to ~2.
2019-06-18 12:36:38 -04:00

37 lines
812 B
YAML

language: haskell
dist: trusty
cache:
directories:
- $HOME/.cabal/store
cabal: "2.4"
matrix:
include:
- ghc: "8.6.3"
# - ghc: "8.4.4"
# - ghc: "8.2.2"
# - ghc: "8.0.2"
# - ghc: "7.10.3"
# - ghc: "7.8.4"
# - ghc: "7.6.3"
install:
- cabal --version
- ghc --version
script:
- cabal v2-update
- cabal v2-build
- cabal v2-test --enable-test
- cabal new-haddock
- cabal check
- cabal sdist # tests that a source-distribution can be generated
# Check that the resulting source distribution can be built & installed.
# If there are no other `.tar.gz` files in `dist`, this can be even simpler:
# `cabal install --force-reinstalls dist/*-*.tar.gz`
- SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
(cd dist && cabal install --force-reinstalls "$SRC_TGZ")