Created
September 9, 2015 11:25
-
-
Save romac/5491ee988e1bbdd76763 to your computer and use it in GitHub Desktop.
Travis configuration for fast build of stack-based Haskell projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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