unused/.circleci/config.yml
Joshua Clayton e8377f5498
Add CircleCI
What?
=====

This introduces CircleCI to the build process.
2018-08-28 16:40:37 -04:00

30 lines
837 B
YAML

version: 2
jobs:
build:
docker:
- image: romanandreg/stack:latest
steps:
- checkout
- run: stack upgrade
- restore_cache:
keys:
- stack-{{ checksum "stack.yaml" }}
- restore_cache:
keys:
- stack-{{ checksum "stack.yaml" }}-{{ checksum "unused.cabal" }}
- run:
name: Configure Stack
command: stack -j 2 setup --no-terminal
- run:
name: Build Stack
command: stack -j 2 build --only-snapshot --fast --no-terminal
- save_cache:
key: stack-{{ checksum "stack.yaml" }}
paths:
- “/root/.stack”
- save_cache:
key: stack-{{ checksum "stack.yaml" }}-{{ checksum "unused.cabal" }}
paths:
- “.stack-work”
- run: stack test