From e53b65651003003fe5066069e69fbf5af10601b9 Mon Sep 17 00:00:00 2001 From: Kevin Hallock Date: Wed, 28 Nov 2018 14:12:24 -0700 Subject: [PATCH] Added dependency caching to circleci config.yml --- .circleci/config.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 99c433d..dc426ab 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,6 +20,13 @@ jobs: steps: - checkout + # Download and cache dependencies + - restore_cache: + keys: + - v1-dependencies-{{ checksum ".circleci/config.yml" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + - run: name: install conda command: | @@ -35,6 +42,11 @@ jobs: source ~/miniconda3/bin/activate root conda create -n wrf-python -c conda-forge gcc setuptools python numpy wrapt xarray netcdf4 + - save_cache: + paths: + - ~/miniconda3 + key: v1-dependencies-{{ checksum ".circleci/config.yml" }} + - run: name: build wrf-python command: |