-
Notifications
You must be signed in to change notification settings - Fork 28
/
.travis.yml
107 lines (80 loc) · 2.81 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
# Use new container infrastructure to enable caching
sudo: false
# Choose a lightweight base image; we provide our own build tools.
language: c
# GHC depends on GMP. You can add other dependencies here as well.
addons:
apt:
packages:
- libgmp-dev
# The different configurations we want to test. You could also do things like
# change flags or use --stack-yaml to point to a different file.
matrix:
include:
- env: ARGS=""
- env: ARGS="--resolver lts-9"
- env: ARGS="--resolver lts-10"
- env: ARGS="--resolver lts-11"
- env: ARGS="--resolver lts-12"
- env: ARGS="--resolver lts-13"
- env: ARGS="--resolver lts-14"
- env: ARGS="--resolver lts-15"
- env: ARGS="--resolver lts-16"
- env: ARGS="--resolver nightly"
allow_failures:
- env: ARGS="--resolver nightly"
before_install:
# Download and unpack the stack executable
- 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'
# This line does all of the work: installs GHC if necessary, build the library,
# executables, and test suites, and runs the test suites. --no-terminal works
# around some quirks in Travis's terminal implementation.
script: stack $ARGS --no-terminal --install-ghc test
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
# # Use new container infrastructure to enable caching
# sudo: false
# # language: haskell
# # do not send Travis CI email notifications
# notifications:
# email: false
# # Caching so the next build will be fast too.
# cache:
# directories:
# - $HOME/.ghc
# # - $HOME/.cabal
# - $HOME/.stack
# before_install:
# # Download and unpack the stack executable
# - mkdir -p ~/.local/bin
# - export PATH=$HOME/.local/bin:$PATH
# - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
# matrix:
# include:
# - env: ARGS="--resolver nightly"
# compiler: ": #GHC HEAD"
# addons: {apt: {packages: [libgmp-dev]}}
# - env: ARGS=""
# compiler: ": #stack default"
# addons: {apt: {packages: [libgmp-dev]}}
# - env: ARGS="--resolver lts-9"
# compiler: ": #stack 8.0.2"
# addons: {apt: {packages: [libgmp-dev]}}
# - env: ARGS="--resolver lts-11"
# compiler: ": #stack 8.2.2"
# addons: {apt: {packages: [libgmp-dev]}}
# - env: ARGS="--resolver lts-12"
# compiler: ": #stack 8.4.3"
# addons: {apt: {packages: [libgmp-dev]}}
# - env: ARGS="--resolver lts-13"
# compiler: ": #stack 8.6.5"
# addons: {apt: {packages: [libgmp-dev]}}
# - env: ARGS="--resolver lts-14"
# compiler: ": #stack 8.6.5"
# addons: {apt: {packages: [libgmp-dev]}}
# script:
# - stack --no-terminal --skip-ghc-check test