CI config for stack

This commit is contained in:
Hans Hoeglund 2020-04-16 12:58:42 +01:00
parent a11e0ddcd7
commit e3a88ae012

25
.circleci/config.yml Normal file
View File

@ -0,0 +1,25 @@
version: 2.1
jobs:
build-stack:
docker:
- image: fpco/stack-build:lts
steps:
- checkout
- restore_cache:
name: Restore Cached Dependencies
keys:
- cci-demo-haskell-v1-{{ checksum "stack.yaml" }}-{{ checksum "package.yaml" }}
- cci-demo-haskell-v1-{{ checksum "stack.yaml" }}
- run:
name: Resolve/Update Dependencies
command: stack --no-terminal setup
- run:
name: Run tests
command: stack --no-terminal test
- save_cache:
name: Cache Dependencies
key: cci-demo-haskell-v1-{{ checksum "stack.yaml" }}-{{ checksum "package.yaml" }}
paths:
- "/root/.stack"
- ".stack-work"