-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (34 loc) · 1.21 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
language: c
cache:
directories:
- $HOME/.stack
# The different configurations we want to test.
#
# We set the compiler values here to tell Travis to use a different
# cache file per set of arguments.
matrix:
include:
- env: ARGS="--resolver lts-7"
compiler: ": #stack 8.0.1"
addons: { apt: { packages: [libgmp-dev] } }
- env: ARGS="--resolver lts-9"
compiler: ": #stack 8.0.2"
addons: { apt: { packages: [libgmp-dev] } }
- env: ARGS="--resolver nightly"
compiler: ": #stack nightly"
addons: { apt: { packages: [libgmp-dev] } }
allow_failures:
# Nightly builds are allowed to fail
- env: ARGS="--resolver nightly"
before_install:
# Using compiler above sets CC to an invalid value, so unset it
- unset CC
# Download and unpack the stack executable
- export PATH=$HOME/.local/bin:$PATH
- mkdir -p ~/.local/bin
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
install:
- stack --no-terminal --install-ghc $ARGS build happy
- stack --no-terminal $ARGS test --bench --only-dependencies
script:
- stack --no-terminal $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps --ghc-options=-Werror