forked from AccelerateHS/accelerate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (52 loc) · 1.82 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
# vim: nospell
#
# Basic template to test with GHC=[7.8, 7.10, 8.0]. Caches the 'stack' build
# directory to speed subsequent compilations.
#
language: generic
dist: trusty
sudo: false
cache:
directories:
- $HOME/.stack/snapshots
matrix:
include:
- env: GHC=7.10.3 CABAL=1.22
compiler: "GHC 7.10"
addons: { apt: { sources: [ hvr-ghc ], packages: [ libgmp-dev, cabal-install-1.22, happy-1.19.5, alex-3.1.7 ] }}
- env: GHC=8.0.2 CABAL=1.24
compiler: "GHC 8.0"
addons: { apt: { sources: [ hvr-ghc ], packages: [ libgmp-dev, cabal-install-1.24, happy-1.19.5, alex-3.1.7 ] }}
- env: GHC=8.2.1 CABAL=2.0
compiler: "GHC 8.2"
addons: { apt: { sources: [ hvr-ghc ], packages: [ libgmp-dev, cabal-install-2.0, happy-1.19.5, alex-3.1.7 ] }}
# - env: GHC=head CABAL=head
# compiler: "GHC HEAD"
# addons: { apt: { sources: [ hvr-ghc ], packages: [ ghc-head, cabal-install-head, happy-1.19.5, alex-3.1.7 ] }}
# allow_failures:
# - env: GHC=head CABAL=head
fast_finish: true
before_install:
- export PATH=/opt/cabal/$CABAL/bin:/opt/alex/3.1.7/bin:/opt/happy/1.19.5/bin:$HOME/.cabal/bin:$PATH
- source .travis/install-stack.sh
install:
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
- cabal --version
- stack --version
- |
if [ ${GHC} == head -o ! -e stack.yaml ]; then
travis_retry cabal install --only-dependencies
else
travis_retry stack build --only-dependencies --fast --no-terminal --test
fi
script:
- |
if [ ${GHC} == head -o ! -e stack.yaml ]; then
cabal install
cabal haddock
else
stack build --fast --no-terminal --haddock --no-haddock-deps --test --no-run-tests
stack test
fi
after_success:
- source .travis/update-accelerate-buildbot.sh