squeal/.circleci/config.yml
Eitan Chatav f8414c954d circle
2019-06-18 14:18:12 -07:00

25 lines
616 B
YAML

version: 2
jobs:
build:
docker:
- image: haskell:8.6.5
- image: circleci/postgres:latest
environment:
POSTGRES_USER: root
POSTGRES_DB: exampledb
steps:
- checkout
- restore_cache:
keys:
- dependency-cache
- run: apt-get update && apt-get install -y libpq-dev xz-utils make
- run: stack upgrade && stack update
- run: stack build --fast
- run: stack test
- run: stack haddock
- save_cache:
key: dependency-cache
paths:
- ".stack-work"
- "/root/.stack/"