-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
66 lines (59 loc) · 1.44 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
# See: https://docs.haskellstack.org/en/stable/travis_ci/
sudo: true
# Caching so the next build will be fast too.
cache:
directories:
- ~/.stack
- ~/.local
- ~/.stack-work-cache
apt: true
git:
submodules: false
before_install:
# Install GTK
- sudo apt-get update
- sudo apt-get -y install libgtk-3-dev
# 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'
- which stack
- ~/.local/bin/stack --version
# ghc
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
install:
- stack setup
- stack exec -- ghc --version
script:
- stack --no-terminal --skip-ghc-check build
- stack --no-terminal --skip-ghc-check sdist
matrix:
include:
- env: GHCVER=8.6.5 CABALVER=2.4 STACK_YAML=stack-8.6.5.yaml
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.6.5
- env: GHCVER=8.4.4 CABALVER=2.4 STACK_YAML=stack-8.4.4.yaml
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.4.4
- env: GHCVER=8.2.2 CABALVER=2.0 STACK_YAML=stack-8.2.2.yaml
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.2.2
- env: GHCVER=8.0.2 CABALVER=1.24 STACK_YAML=stack-8.0.2.yaml
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.0.2