-
Notifications
You must be signed in to change notification settings - Fork 73
/
.travis.yml
37 lines (29 loc) · 950 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: haskell
dist: trusty
cache:
directories:
- $HOME/.cabal/store
cabal: "3.0"
matrix:
include:
- ghc: "8.10.1"
- ghc: "8.8.1"
- ghc: "8.6.5"
install:
- cabal --version
- ghc --version
script:
- cabal v2-update
- cabal v2-build
- cabal v2-test --enable-test
# This weird bash stuff is a workaround for haskell/cabal#5977
- "! cabal new-haddock 2>&1 >/dev/null | grep 'Failed to build documentation'"
- 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-newstyle/sdist && cabal v1-install --force-reinstalls "$SRC_TGZ")
- cabal v2-build polysemy-plugin
- cabal v2-test --enable-test polysemy-plugin