-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (29 loc) · 869 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
sudo: false
language: generic
env:
matrix:
- STACK_YAML=stack.yaml
# allow_failures:
# - GHCVER=8.4 STACK_YAML=stack-8.4.yaml
install:
# Stack installation
- mkdir -p ~/.local/bin
- travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v1.7.1/stack-1.7.1-linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- export PATH=~/.local/bin:$PATH
- stack --no-terminal --version
script:
- stack setup --no-terminal
- stack update --no-terminal
# -j2 has been about right on TravisCI IME
- stack build -j2 --fast --no-terminal
# You might want to remove --fast if you want to
# upload optimized binaries on a successful build
- stack test --fast --no-terminal
cache:
timeout: 2000
directories:
- $HOME/.cabal
- $HOME/.ghc
- $HOME/.stack
- .stack-work/
apt: true