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

save the stack cache earlier

parent 7c4f2c4a
No related branches found
No related tags found
1 merge request!18Ristretto dependency
......@@ -92,6 +92,17 @@ jobs:
# while to build.
no_output_timeout: "20m"
- save_cache:
# We can save the stack cache right here. It will have everything
# we want in it now that the dependencies have been built. And this
# way we get to save the cache whether or not the test suite goes on
# to succeed.
name: "Cache Dependencies"
key: paymentserver-v1-{{ checksum "stack.yaml" }}-{{ checksum "PaymentServer.cabal" }}
paths:
- "/root/.stack"
- ".stack-work"
- run:
name: "Run Tests"
command: |
......@@ -125,13 +136,6 @@ jobs:
--no-haddock-deps"
nix-shell shell.nix --run "$BUILD"
- save_cache:
name: "Cache Dependencies"
key: paymentserver-v1-{{ checksum "stack.yaml" }}-{{ checksum "PaymentServer.cabal" }}
paths:
- "/root/.stack"
- ".stack-work"
- save_cache:
name: "Cache Nix Store Paths"
key: paymentserver-nix-store-v1-{{ .Environment.NIXPKGS_REV }}
......
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