-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.travis.yml
48 lines (43 loc) · 1.08 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
language: generic
sudo: false
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
- $TRAVIS_BUILD_DIR/.stack-work
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: BUILD=stack GHCVER=8.0.1 STACK_YAML=stack-8.0.1.yaml
compiler: ": #stack 8.0.1"
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.0.1
- env: BUILD=stack GHCVER=8.4.3 STACK_YAML=stack.yaml
compiler: ": #stack 8.4.3"
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.4.3
- env: LINT=hlint
script:
- |
set -ex
if [[ $LINT == 'hlint' ]]; then
curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s .
else
stack setup
stack --no-terminal test
fi
set +ex