2019-06-18 19:36:38 +03:00
|
|
|
language: haskell
|
|
|
|
dist: trusty
|
2019-04-10 07:03:31 +03:00
|
|
|
|
|
|
|
cache:
|
2019-06-18 19:36:38 +03:00
|
|
|
directories:
|
|
|
|
- $HOME/.cabal/store
|
|
|
|
|
|
|
|
cabal: "2.4"
|
2019-04-10 07:03:31 +03:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2019-06-20 00:25:37 +03:00
|
|
|
- ghc: "8.6.5"
|
|
|
|
- ghc: "8.4.4"
|
2019-04-10 07:03:31 +03:00
|
|
|
|
|
|
|
install:
|
2019-06-18 19:36:38 +03:00
|
|
|
- cabal --version
|
|
|
|
- ghc --version
|
2019-04-10 07:03:31 +03:00
|
|
|
|
|
|
|
script:
|
2019-06-18 19:36:38 +03:00
|
|
|
- cabal v2-update
|
|
|
|
- cabal v2-build
|
|
|
|
- cabal v2-test --enable-test
|
2019-07-07 18:27:18 +03:00
|
|
|
# This weird bash stuff is a workaround for haskell/cabal#5977
|
|
|
|
- "! cabal new-haddock 2>&1 >/dev/null | grep 'Failed to build documentation'"
|
2019-06-18 19:36:38 +03:00
|
|
|
- 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")
|
2019-06-20 00:25:37 +03:00
|
|
|
|
|
|
|
- cabal v2-build polysemy-plugin
|
|
|
|
- cabal v2-test --enable-test polysemy-plugin
|
|
|
|
|