Skip to content

Instantly share code, notes, and snippets.

@romac
Created September 9, 2015 11:25
Show Gist options
  • Save romac/5491ee988e1bbdd76763 to your computer and use it in GitHub Desktop.
Save romac/5491ee988e1bbdd76763 to your computer and use it in GitHub Desktop.
Travis configuration for fast build of stack-based Haskell projects
language: haskell
sudo: false
cache:
directories:
- $HOME/.stack/
before_install:
- mkdir -p ~/.local/bin
- export PATH=~/.local/bin:$PATH
- travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.4.0/stack-0.1.4.0-x86_64-linux.tar.gz | tar xz -C ~/.local/bin
- chmod a+x ~/.local/bin/stack
install:
- stack +RTS -N2 -RTS setup
- stack +RTS -N2 -RTS build --only-snapshot
script:
- stack +RTS -N2 -RTS test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment