Browse Source

Added dependency caching to circleci config.yml

lon0
Kevin Hallock 7 years ago
parent
commit
e53b656510
  1. 12
      .circleci/config.yml

12
.circleci/config.yml

@ -20,6 +20,13 @@ jobs:
steps: steps:
- checkout - 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: - run:
name: install conda name: install conda
command: | command: |
@ -35,6 +42,11 @@ jobs:
source ~/miniconda3/bin/activate root source ~/miniconda3/bin/activate root
conda create -n wrf-python -c conda-forge gcc setuptools python numpy wrapt xarray netcdf4 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: - run:
name: build wrf-python name: build wrf-python
command: | command: |

Loading…
Cancel
Save