From f41f8f65bcfeb9cbd9f68d5068afc473a23f1d36 Mon Sep 17 00:00:00 2001 From: Sam Tay Date: Wed, 26 Dec 2018 19:01:00 -0500 Subject: [PATCH] Add travis ci --- .travis.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .travis.yml 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