-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
35 lines (29 loc) · 1.24 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
# RRN: Copied from template here: https://github.com/hvr/multi-ghc-travis/blob/master/README.md#ghc-head-snapshots
# NB: don't set `language: haskell` here
sudo: false
cache:
directories:
- $HOME/.stack/
- $HOME/.local/
matrix:
include:
- env: STACKVER=1.7.1 STACK_RESOLVER=lts-12.4 # GHC-8.4.3
- env: STACKVER=1.7.1 STACK_RESOLVER=lts-11.17 # GHC-8.2.2
- env: STACKVER=1.7.1 STACK_RESOLVER=lts-9.21 # GHC-8.0.2
- env: STACKVER=1.7.1 STACK_RESOLVER=lts-6.35 # GHC-7.10.3
# This is stack-specific. Oh well.
before_install:
- mkdir -p ~/.local/bin
- export PATH=~/.local/bin:$PATH
- export STACK_YAML=stack-${STACK_RESOLVER}.yaml
- export STACK_URL=https://github.com/commercialhaskell/stack/releases/download/v${STACKVER}/stack-${STACKVER}-linux-x86_64.tar.gz
install:
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:~/.local/bin:$PATH
- ./.travis_install.sh
- curl -sSL ${STACK_URL} | tar zxf - --strip-components=1 -C ~/.local/bin stack-${STACKVER}-linux-x86_64/stack
- chmod a+x ~/.local/bin/stack
- stack setup
- stack build
# Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail.
script:
- stack test