-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
48 lines (39 loc) · 1.29 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
sudo: required
env:
- GHCVER=8.0.2 CABALVER=1.24
- GHCVER=8.0.2 CABALVER=2.0
- GHCVER=8.2.2 CABALVER=1.24
- GHCVER=8.2.2 CABALVER=2.0
- GHCVER=8.2.2 CABALVER=2.2
- GHCVER=8.2.2 CABALVER=2.4
- GHCVER=8.4.4 CABALVER=2.0
cache:
directories:
- $HOME/.cabal/packages
before_cache:
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/build-reports.log
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.*
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/*.json
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.cache
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar.idx
before_install:
- sudo add-apt-repository -y ppa:hvr/ghc
- sudo apt-get update
- sudo apt-get install hoogle cabal-install-$CABALVER ghc-$GHCVER
- export PATH=/opt/cabal/$CABALVER/bin:/opt/ghc/$GHCVER/bin:$PATH
install:
- cabal update
# These sandbox commands are doing manually what mafia would do when building itself.
- cabal sandbox init
script:
- cabal install --dependencies-only --enable-tests
- cabal configure --enable-tests
- cabal build
- dist/build/test/test
- dist/build/test-io/test-io
- dist/build/test-cli/test-cli
- cabal haddock
- 'if [ ${CABALVER} = "2.0" ]; then
cabal sdist ;
fi'