mirror of
https://github.com/ilyakooo0/squeal.git
synced 2024-09-19 01:38:46 +03:00
25 lines
616 B
YAML
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/"
|