-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 1.22 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
sudo: false
language: c
cache:
directories:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
matrix:
include:
- compiler: ": #stack default"
env: ARGS="--ghc-options=-pgmc=gcc-4.9"
addons:
apt:
sources: [ubuntu-toolchain-r-test]
packages: [g++-4.9, libgsl0-dev, libgmp-dev]
- compiler: ": #stack 7.10.3"
env: ARGS="--ghc-options=-pgmc=gcc-4.9 --resolver=lts-5"
addons:
apt:
sources: [hvr-ghc, ubuntu-toolchain-r-test]
packages: [g++-4.9, libgsl0-dev, ghc-7.10.3]
- compiler: ": #stack nightly"
env: ARGS="--ghc-options=-pgmc=gcc-4.9 --resolver=nightly"
addons:
apt:
sources: [ubuntu-toolchain-r-test]
packages: [g++-4.9, libgsl0-dev, libgmp-dev]
allow_failures:
- compiler: ": #stack nightly"
before_install:
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
install:
- stack --stack-yaml=stack-ci.yaml --no-terminal -j2 --install-ghc test $ARGS --only-dependencies
script:
- stack --stack-yaml=stack-ci.yaml --no-terminal -j2 build $ARGS