Skip to content
Snippets Groups Projects
Commit 7bebe28e authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

try some stack caching

parent 75ea43b9
No related branches found
No related tags found
1 merge request!14Try out a CircleCI configuration
......@@ -31,11 +31,25 @@ jobs:
- "checkout"
- restore_cache:
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/
name: "Restore Cached Dependencies"
keys:
- paymentserver-v1-{{ checksum "stack.yaml" }}-{{ checksum "PaymentServer.cabal" }}
- paymentserver-v1-{{ checksum "stack.yaml" }}
- run:
name: "Run Tests"
command: |
nix-shell shell.nix --run "stack test --no-terminal --coverage"
- save_cache:
name: "Cache Dependencies"
key: paymentserver-v1-{{ checksum "stack.yaml" }}-{{ checksum "PaymentServer.cabal" }}
paths:
- "/root/.stack"
- ".stack-work"
workflows:
version: 2
everything:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment