forked from haskell-repa/repa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
84 lines (73 loc) · 2.12 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
# vim: nospell
language: minimal
sudo: false
cache:
directories:
- $HOME/.stack
matrix:
include:
- env: GHC=7.10.3 LLVM=3.5 CABAL=1.22
compiler: "GHC 7.10"
addons:
apt:
sources:
- hvr-ghc
- llvm-toolchain-precise-3.5
- ubuntu-toolchain-r-test
packages:
- ghc-7.10.3
- cabal-install-1.22
- happy-1.19.5
- alex-3.1.4
- llvm-3.5-dev
- libedit-dev
- gcc-4.8
- g++-4.8
- env: GHC=head LLVM=3.7 CABAL=1.24
compiler: "GHC HEAD"
addons:
apt:
sources:
- hvr-ghc
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
packages:
- ghc-head
- cabal-install-1.24
- happy-1.19.5
- alex-3.1.4
- llvm-3.7-dev
- libedit-dev
- gcc-4.8
- g++-4.8
allow_failures:
- env: GHC=head LLVM=3.7 CABAL=1.24
before_install:
- export PATH=/opt/ghc/$GHC/bin:/opt/cabal/$CABAL/bin:/opt/alex/3.1.4/bin:/opt/happy/1.19.5/bin:/usr/lib/llvm-$LLVM/bin:$PATH
# cabal
- travis_retry cabal update
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
# stack
- mkdir $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
- travis_retry stack setup
- travis_retry stack install hscolour
install:
- echo "$(stack exec ghc -- --version) [$(stack exec 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 cabal install --only-dependencies repa repa-io repa-algorithms repa-examples
else
travis_retry stack build --only-dependencies --no-terminal --no-haddock-deps -j2
fi
script:
- if [ ${GHC} == head ]; then
cabal install repa repa-io repa-algorithms repa-examples
else
stack build --no-terminal --haddock --no-haddock-deps
fi