From 97c3f05f332044b42685bd7f06550b388bacde1b Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Mon, 7 Oct 2019 15:27:49 -0400
Subject: [PATCH] try caching codecov and its deps too

---
 .circleci/config.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index b680f3d..8c393e1 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -125,6 +125,16 @@ jobs:
             # where the coverage data ends up.
             nix-build --argstr hypothesisProfile ci --arg collectCoverage true --attr doc
 
+      - run:
+          name: "Cache codecov"
+          command: |
+            # Build codecov and any dependencies here, before we save the
+            # cache, so that they make it in to the cache too.  Turns out
+            # there is a python-cryptography dependency here that is expensive
+            # to build that doesn't get built earlier.  This saves us a couple
+            # minutes.
+            nix-build --expr '(import <nixpkgs> { }).python.withPackages (ps: [ ps.codecov ])'
+
       - save_cache:
           name: "Cache Nix Store Paths"
           key: zkapauthorizer-nix-store-v1-{{ checksum "nixpkgs.rev" }}
-- 
GitLab