Add travis ci

This commit is contained in:
Sam Tay 2018-12-26 19:01:00 -05:00
parent 6ee74604e8
commit f41f8f65bc

23
.travis.yml Normal file
View file

@ -0,0 +1,23 @@
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'
install:
- stack --no-terminal --install-ghc test --only-dependencies
script:
- stack --no-terminal test --haddock --no-haddock-deps