aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 8d51030dd4d62869393b773305102fe4c6153cbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
sudo: required
dist: "trusty"
os: "linux"


language: generic

# Caching so the next build will be fast too.
cache:
  directories:
    - $HOME/.stack

before_install:
- mkdir -p $HOME/.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:
# Build dependencies
- stack --no-terminal --install-ghc test --only-dependencies

script:
# Build the package, its tests, and its docs and run the tests
- stack --no-terminal test