forked from barrucadu/irc-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (28 loc) · 861 Bytes
/
.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
# Set-up
sudo: false
language: c
# Cache builds
cache:
directories:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
# Build matrix configuration
matrix:
include:
- env: RESOLVER="lts-4"
addons: {apt: {packages: [ghc-7.10.3], sources: [hvr-ghc]}}
- env: RESOLVER="lts-5"
addons: {apt: {packages: [ghc-7.10.3], sources: [hvr-ghc]}}
- env: RESOLVER="lts-6"
addons: {apt: {packages: [ghc-7.10.3], sources: [hvr-ghc]}}
- env: RESOLVER="nightly"
addons: {apt: {packages: [libgmp-dev]}}
# Download and unpack the stack executable
before_install:
- export PATH=/opt/ghc/$GHCVER/bin:$HOME/.local/bin:$PATH
- mkdir -p ~/.local/bin
- curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
# Test build
script:
- stack --no-terminal --install-ghc --resolver=$RESOLVER build