forked from haskoin/haskoin-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (36 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
language: generic
sudo: required
dist: trusty
matrix:
include:
- env: LTS=default GHCVER=7.10.3
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-7.10.3
- alex-3.1.3
- happy-1.19.4
- libgmp-dev
- libleveldb-dev
- libzmq3-dev
- libsnappy-dev
- libncurses5-dev
- pkg-config
- zlib1g-dev
before_install:
- export PATH=/opt/ghc/$GHCVER/bin:/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH
- if [[ "$LTS" == "default" ]]; then
export STACK=stack;
else
export STACK="stack --stack-yaml stack-$LTS.yaml";
fi
- mkdir -p ~/.local/bin
- export PATH=~/.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'
install:
- travis/travis_long $STACK --no-terminal setup
- travis/travis_long $STACK --no-terminal install hscolour
script:
- travis/travis_long $STACK --no-terminal build --test --haddock