-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (27 loc) · 1.01 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
sudo: false
# Choose a lightweight base image; we provide our own build tools.
language: c
cache:
directories:
- $HOME/.stack
addons: {apt: {packages: [libgmp-dev]}}
matrix:
include:
- env: STACK_YAML=stack.yaml
# - env: STACK_YAML=stack-ghc-7.8.yaml # jwt does not support ghc 7.8
- env: STACK_YAML=stack-ghc-7.10.yaml
- env: STACK_YAML=stack.yaml ARGS="--resolver nightly"
allow_failures:
- env: STACK_YAML=stack.yaml ARGS="--resolver nightly"
before_install:
# Download and unpack the stack executable
- export PATH=$HOME/.local/bin:$PATH
- mkdir -p ~/.local/bin
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
install:
- stack --no-terminal --install-ghc $ARGS test --bench --only-dependencies
script:
- stack --no-terminal $ARGS build
- sh -c 'stack --no-terminal $ARGS exec managemytime-exe test &'
- sleep 5
- stack --no-terminal $ARGS test managemytime --bench --no-run-benchmarks --haddock --no-haddock-deps