diff --git a/.gitignore b/.gitignore index 178135c..67e85f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /dist/ +/.stack-work/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..9d5d32d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,23 @@ +script: + - stack --no-terminal --skip-ghc-check --system-ghc test + +sudo: false + +# Caching so the next build will be fast too. +cache: + directories: + - $HOME/.stack + +before_install: +# Download and unpack the stack executable +- mkdir -p ~/.local/bin +- export PATH=$HOME/.local/bin:$PATH +- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' +- export PATH=/opt/ghc/8.0.2/bin:/opt/ghc/bin:$PATH + +addons: + apt: + sources: + - hvr-ghc + packages: + - ghc-8.0.2 diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..0d32243 --- /dev/null +++ b/stack.yaml @@ -0,0 +1,5 @@ +resolver: lts-8.5 +packages: +- '.' +nix: + packages: [zlib, openssl, ncurses, pkgconfig]