-
Notifications
You must be signed in to change notification settings - Fork 83
/
.travis.yml
109 lines (95 loc) · 2.47 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# vim: nospell
#
# Basic template to test with GHC=[7.8, 7.10, 8.0].
# Caches the 'stack' build directory to speed subsequent compilations.
#
language: minimal
dist: trusty
sudo: required # not really, but these instances have more memory
cache:
timeout: 600
directories:
- $HOME/.stack/snapshots
- .stack-work/install
before_cache:
- rm -vrf $(stack path --local-install-root)/bin
- rm -rf $(stack path --local-install-root)/doc
addons:
apt:
sources: &apt_sources
- hvr-ghc
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty
packages: &apt_packages
- alex-3.1.7
- g++-4.8
- gcc-4.8
- happy-1.19.5
- libedit-dev
- libgmp-dev
- freeglut3-dev
matrix:
fast_finish: true
include:
- env: GHC=8.6.1 LLVM=6.0.0
compiler: "GHC 8.6"
addons:
apt:
sources:
- *apt_sources
- llvm-toolchain-trusty-6.0
packages:
- *apt_packages
- llvm-6.0-dev
- env: GHC=8.4.1 LLVM=5.0.0
compiler: "GHC 8.4"
addons:
apt:
sources:
- *apt_sources
- llvm-toolchain-trusty-5.0
packages:
- *apt_packages
- llvm-5.0-dev
- env: GHC=8.2.2 LLVM=4.0.1
compiler: "GHC 8.2"
addons:
apt:
sources:
- *apt_sources
- llvm-toolchain-trusty-4.0
packages:
- *apt_packages
- llvm-4.0-dev
- env: GHC=8.0.2 LLVM=3.7.1
compiler: "GHC 8.0"
addons:
apt:
sources:
- *apt_sources
- llvm-toolchain-precise-3.7
packages:
- *apt_packages
- llvm-3.7-dev
- env: GHC=7.10.3 LLVM=3.5.1
compiler: "GHC 7.10"
addons:
apt:
sources:
- *apt_sources
- llvm-toolchain-precise-3.5
packages:
- *apt_packages
- llvm-3.5-dev
before_install:
- export PATH=/opt/alex/3.1.7/bin:/opt/happy/1.19.5/bin:$PATH
- source .travis/install-stack.sh
install:
- echo "$(stack exec ghc -- --version) [$(stack exec ghc -- --print-project-git-commit-id 2> /dev/null || echo '?')]"
- stack --version
- llc-${LLVM:0:3} --version; true
- opt-${LLVM:0:3} --version; true
- stack build --dry-run
- travis_retry stack build --only-dependencies --fast --no-terminal
script:
- travis_retry stack build --fast --no-terminal --haddock --no-haddock-deps