-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
53 lines (45 loc) · 1.54 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
# Configuration copied from docs.haskellstack.org
sudo: false
language: generic
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/5dfabef9855765e0c386
on_success: change
on_failure: always
on_start: never
env:
global:
- GH_REF: github.com/jtanguy/hmacaroons.git
- secure: "cpcJvp233pVNy05VeWgzUEw1xYCekk1xT1x2grzhUx8mpCqXZda+Xbu76QCqLSESPgc8Q39m6bR8c+oLkbgRM1U+hR91+2sccKaP9cLTad0yoPRdm6qDB96mzLcEX+yl22GVVzSg20AZx0B9edIT9z7pnEVMJV4iDwhsx/p5Uas="
matrix:
include:
- env: RESOLVER=lts-11.17 PUSH_DOCS=true
compiler: ": #stack 8.2.2"
- env: RESOLVER=lts-12.0 PUSH_DOCS=false
compiler: ": #stack 8.4.3"
- env: RESOLVER=nightly PUSH_DOCS=false
compiler: ": #stack nightly"
allow_failures:
- env: RESOLVER=nightly
before_install:
- unset CC
# 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'
install:
# Build the dependencies
- stack --no-terminal --install-ghc --resolver $RESOLVER test --bench --only-dependencies
#- stack --no-terminal --resolver $RESOLVER install stack-hpc-coveralls
script:
- stack --no-terminal --resolver $RESOLVER test --coverage
- stack --no-terminal --resolver $RESOLVER bench
# - shc hmacaroons test
after_script:
- if [ true = $PUSH_DOCS ]; then bash ./scripts/pushdoc.sh; fi
# EOF