-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
81 lines (67 loc) · 1.6 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
language: haskell
dist: xential
cache:
directories:
- $HOME/.stack
- $TRAVIS_BUILD_DIR/.stack-work
env:
global:
- STACK_VERSION=2.1.3
- HAPCK_VREIONS=0.31.2
matrix:
fast_finish: true
include:
- env: BUILD=stack ARGS="--system-ghc"
ghc: "8.6.5"
- env: BUILD=style
ghc: "8.6.5"
- env: BUILD=pedantic ARGS="--system-ghc"
ghc: "8.6.5"
allow_failures:
- env: BUILD=style
- env: BUILD=pedantic ARGS="--system-ghc"
before_install:
- case "$BUILD" in
style)
export PATH="$TRAVIS_BUILD_DIR"/hlint:$PATH
;;
*)
export PATH="$HOME"/.local/bin:$PATH
;;
esac
install:
- |
set -ex
case "$BUILD" in
style)
curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s -- --version
;;
*)
mkdir -p $HOME/.local/bin
travis_retry curl -sL https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
travis_retry stack upgrade --binary-version=$STACK_VERSION
stack --numeric-version
stack --hpack-numeric-version
ghc --version
stack install tasty-discover
stack install hspec-discover
;;
esac
set +ex
script:
- |
set -ex
case "$BUILD" in
style)
curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s
;;
stack)
stack --no-terminal $ARGS test --no-haddock-deps
;;
pedantic)
stack --no-terminal $ARGS test --pedantic --no-run-tests
;;
esac
set +ex
notification:
email: false