forked from eskimor/purescript-bridge
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
89 lines (78 loc) · 2.01 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
82
83
84
85
86
87
88
89
# vim: nospell
language: minimal
sudo: false
cache:
directories:
- $HOME/.stack
matrix:
include:
- env: GHC=7.10.3 CABAL=1.22
compiler: "GHC 7.10"
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-7.10.3
- cabal-install-1.22
- happy-1.19.5
- alex-3.1.4
- env: GHC=8.0.1 CABAL=1.24
compiler: "GHC 8.0"
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.0.1
- cabal-install-1.24
- happy-1.19.5
- alex-3.1.4
- env: GHC=head CABAL=1.24
compiler: "GHC HEAD"
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-head
- cabal-install-1.24
- happy-1.19.5
- alex-3.1.4
allow_failures:
- env: GHC=head CABAL=1.24
fast_finish: true
before_install:
- export PATH=/opt/ghc/$GHC/bin:/opt/cabal/$CABAL/bin:/opt/alex/3.1.4/bin:/opt/happy/1.19.5/bin:$PATH
# cabal
- travis_retry cabal update
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
# stack
- mkdir -p $HOME/bin
- export PATH=$HOME/bin:$PATH
- travis_retry curl -L "https://www.stackage.org/stack/linux-x86_64" | gunzip | tar -x
- mv stack-*/stack $HOME/bin
- if [ ${GHC} != head ]; then ln -s stack-${GHC%.*}.yaml stack.yaml; fi
- pwd
- ls -lh
- travis_retry stack setup
- travis_retry stack install hscolour
install:
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
- stack --version
- cabal --version
- opt --version; true
- llc --version; true
- |
if [ ${GHC} != head ]; then
travis_retry stack build --only-dependencies --no-terminal --no-haddock-deps -j2
else
travis_retry cabal install --only-dependencies --allow-newer
fi
script:
- |
if [ ${GHC} != head ]; then
stack test --no-terminal
else
cabal install --allow-newer
fi