-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
44 lines (37 loc) · 1.07 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
# For further information on this Travis setup:
# http://docs.haskellstack.org/en/stable/GUIDE.html#travis-with-caching
# use new container infrastructure to allow caching
sudo: false
# choose light-weight base image
language: c
addons:
apt:
packages:
- libgmp-dev # for ghc
- libxxf86vm-dev # for GLFW
- libgl1-mesa-dev
- libxi-dev
- libxcursor-dev
- libxinerama-dev
- libxrandr-dev
- zlib1g-dev
- libpulse-dev
# different configurations:
env:
- ARGS="--resolver lts-9.6"
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'
# Setup stack
- stack --no-terminal setup
# Install hscolour to remove some haddock warnings; try removing when
# changing to a stable Stack resolver.
- stack --no-terminal install hscolour
# build
script: stack $ARGS --no-terminal --install-ghc test
# set up caching
cache:
directories:
- $HOME/.stack