Skip to content

Instantly share code, notes, and snippets.

@tippenein
Created September 14, 2017 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tippenein/1a5f780646071a4535f839aadd7bbdbb to your computer and use it in GitHub Desktop.
Save tippenein/1a5f780646071a4535f839aadd7bbdbb to your computer and use it in GitHub Desktop.
machine:
services:
- postgresql
database:
override:
- createuser -s -d test
- createdb rsvptest
dependencies:
cache_directories:
- "~/.cabal"
- "~/.local"
- "~/.stack"
- ".stack-work"
pre:
- wget -q -O- https://s3.amazonaws.com/download.fpcomplete.com/ubuntu/fpco.key | sudo apt-key add -
- echo 'deb http://download.fpcomplete.com/ubuntu/trusty stable main'|sudo tee /etc/apt/sources.list.d/fpco.list
- sudo apt-get update
- sudo apt-get install -y stack
override:
- stack --no-terminal setup
- stack --no-terminal build --test --only-dependencies -j1
test:
override:
- stack --no-terminal build --test --fast
- stack --no-terminal test --fast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment