From 0360c2cd61d8fa7d0b31f329d191b981cac42a3b Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Thu, 13 May 2021 06:41:40 -0400
Subject: [PATCH] Save cache before running the test suite

This way we get the cache even if the test suite fails
---
 .circleci/config.yml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 90e2f8a..560ec0f 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -206,6 +206,12 @@ jobs:
               --arg callPackage '(import <nixpkgs> { }).callPackage' \
               ./python-challenge-bypass-ristretto.nix
 
+      - save_cache:
+          name: "Cache Nix Store Paths"
+          key: zkapauthorizer-nix-store-v4-{{ checksum "nixpkgs.rev" }}
+          paths:
+            - "/nix"
+
       - run:
           name: "Run Test Suite"
           command: |
@@ -221,12 +227,6 @@ jobs:
             # where the coverage data ends up.
             nix-build --cores 8 --argstr hypothesisProfile ci --arg collectCoverage true --attr doc
 
-      - save_cache:
-          name: "Cache Nix Store Paths"
-          key: zkapauthorizer-nix-store-v4-{{ checksum "nixpkgs.rev" }}
-          paths:
-            - "/nix"
-
       - run:
           name: "Report Coverage"
           command: |
-- 
GitLab