-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (24 loc) · 858 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
# this is a clone of https://docs.haskellstack.org/en/stable/travis_ci/
# alternative: https://github.com/harendra-kumar/packcheck
sudo: false
language: generic
cache:
directories:
- $HOME/.stack
addons:
apt:
packages:
- libgmp-dev
before_install:
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- docker pull redis:alpine # https://hub.docker.com/_/redis/
install:
- stack --no-terminal --install-ghc test --fast --only-dependencies
script:
- export DOCKER_PID=`docker run --net=host -d redis:alpine`
- stack --no-terminal test --fast --haddock --no-haddock-deps
- docker rm -f ${DOCKER_PID}
notifications: # see https://docs.travis-ci.com/user/notifications
email: false