diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..bc43003 --- /dev/null +++ b/.travis.yml @@ -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