forked from willbasky/hibet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (34 loc) · 1.1 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
sudo: true
dist: bionic
language: generic
cache:
directories:
- $HOME/.stack
- .stack-work
timeout: 1000
jobs:
include:
- stage: "Build the backend"
before_script:
- sudo apt-get install -y libgmp-dev
- curl -sSL https://get.haskellstack.org/ | sh
# travis_retry works around https://github.com/commercialhaskell/stack/issues/4888
- travis_retry stack setup
script:
# Build
- stack --no-terminal build --test --no-run-tests --dependencies-only
- stack --no-terminal build --test --no-run-tests
before_cache:
- rm -rf $HOME/.stack/programs # GHC is faster to install than to cache
- stage: "Hlint"
before_script:
- sudo apt-get install -y libgmp-dev
- curl -sSL https://get.haskellstack.org/ | sh
# travis_retry works around https://github.com/commercialhaskell/stack/issues/4888
- travis_retry stack setup
- stack install hlint
script:
# Check
- hlint .
before_cache:
- rm -rf $HOME/.stack/programs # GHC is faster to install than to cache