-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (40 loc) · 1.03 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
sudo: true
language: haskell
git:
depth: 5
cabal: "3.0"
cache:
directories:
- "$HOME/.cabal/store"
matrix:
include:
# Cabal
- ghc: 8.2.2
- ghc: 8.4.4
- ghc: 8.6.5
- ghc: 8.8.1
install:
- ghc --version
- cabal --version
- cabal update
- DISTDIR=$(mktemp -d /tmp/dist.XXXX)
script:
# test that source-distributions can be generated
- cabal sdist all
- cat ./dist*/sdist/constrained-0.1.tar.gz | (cd "${DISTDIR}" && tar -xzvf -)
- cat ./dist*/sdist/constrained-platform-instances-0.1.tar.gz | (cd "${DISTDIR}" && tar -xzvf -)
- cd ${DISTDIR}/
- |
printf 'packages: constrained-0.1/constrained.cabal constrained-platform-instances-0.1/constrained-platform-instances.cabal\n' > cabal.project
- PKGDIR="$(pwd)"
- ls -l
- ls -l *
# Build the package
- echo "Building package"
- cabal configure --enable-tests --enable-benchmarks
- cabal build all
- (cd constrained-0.1; cabal check)
- (cd constrained-platform-instances-0.1; cabal check)
- cabal haddock all
notifications:
email: false