mirror of
https://github.com/polysemy-research/polysemy.git
synced 2024-09-11 10:36:40 +03:00
36 lines
787 B
YAML
36 lines
787 B
YAML
language: haskell
|
|
dist: trusty
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.cabal/store
|
|
|
|
cabal: "2.4"
|
|
|
|
matrix:
|
|
include:
|
|
- ghc: "8.6.5"
|
|
- ghc: "8.4.4"
|
|
|
|
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")
|
|
|
|
- cabal v2-build polysemy-plugin
|
|
- cabal v2-test --enable-test polysemy-plugin
|
|
|