circle 2.0

This commit is contained in:
Eitan Chatav 2018-03-24 16:14:33 -07:00
parent 75c5433afc
commit 4973e5bc01
3 changed files with 21 additions and 12 deletions

20
.circleci/config.yml Normal file
View File

@ -0,0 +1,20 @@
version: 2
jobs:
build:
docker:
- image: haskell:latest
- image: circleci/postgres:9.6
environment:
POSTGRES_DB: exampledb
steps:
- checkout
- restore_cache:
keys:
- dependency-cache
- run: stack build
- run: stack test
- run: stack haddock
- save_cache:
key: dependency-cache
paths:
- ".stack-work"

1
.gitignore vendored
View File

@ -17,3 +17,4 @@ cabal.sandbox.config
*.eventlog
.stack-work/
cabal.project.local
.DS_Store

View File

@ -1,12 +0,0 @@
dependencies:
cache_directories:
- "~/.stack"
- ".stack-work"
override:
- stack upgrade
- stack update
- stack setup
- stack test --no-run-tests
test:
override:
- stack test