forked from chordify/haskell-servant-pagination
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (37 loc) · 1.13 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
sudo: false
language: generic
cache:
timeout: 1337
directories:
- $HOME/.stack
- $HOME/.local
- $HOME/.ghc
branches:
only:
- master
env:
global:
- PATH=$HOME/.local/bin:$PATH
stages:
- action
before_install:
- mkdir -p $HOME/.local/bin
- travis_retry curl -L -k https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
install:
- travis_wait 42 stack --no-terminal --install-ghc build --fast --only-dependencies
jobs:
include:
- stage: action
env: ACTION=hlint
scripts:
- travis_wait 42 stack --no-terminal install hlint
- travis_wait 42 stack --no-terminal exec hlint -- . --cpp-define=__GLASGOW_HASKELL__=800 --cpp-define=x86_64_HOST_ARCH=1 --cpp-define=mingw32_HOST_OS=1
- stage: action
env: ACTION=weeder
script:
- travis_wait 42 stack --no-terminal test --no-run-tests --fast --flag servant-pagination:examples
- curl -sSL https://raw.github.com/ndmitchell/weeder/master/misc/travis.sh | sh -s .
- stage: action
env: ACTION=tests
script:
- travis_wait 42 stack --no-terminal test --fast --coverage