-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
60 lines (52 loc) · 1.13 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
50
51
52
53
54
55
56
57
58
59
60
language: haskell
dist: xenial
cabal: "2.4"
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
- $HOME/.cabal/packages
- $HOME/.cabal/store
matrix:
fast_finish: true
include:
- env: BUILD=cabal
ghc: 8.6.3
- env: BUILD=cabal
ghc: 8.10.1
- env: BUILD=stack ARGS="--system-ghc"
ghc: 8.8.4
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- case "$BUILD" in
cabal)
export PATH="$HOME"/.cabal/bin:$PATH
;;
stack)
export PATH=$HOME/.local/bin:$PATH
;;
esac
install:
- case "$BUILD" in
cabal)
cabal update;
cabal install happy;
cabal install --only-dependencies --enable-tests
;;
stack)
travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
;;
esac
script:
- case "$BUILD" in
cabal)
cabal test test
;;
stack)
stack --no-terminal $ARGS --skip-ghc-check test
;;
esac
branches:
only:
- master