Add some caching to the build

This commit is contained in:
Devon Mackay 2018-08-30 17:11:24 -04:00
parent b1b201b8ca
commit 6fb4e4d179

View File

@ -21,7 +21,40 @@ jobs:
name: "Clone Submodules" name: "Clone Submodules"
command: | command: |
git submodule update --init --recursive git submodule update --init --recursive
- restore_cache:
name: "Load Cache: Pipenv References"
keys:
- pipenv-v1-{{ .Branch }}-{{ checksum "Pipefile.lock" }}
- pipenv-v1-{{ .Branch }}-
- pipenv-v1-
- restore_cache:
name: "Load Cache: Python Venv"
keys:
- venv-v1-{{ .Branch }}-{{ checksum "Pipefile.lock" }}
- venv-v1-{{ .Branch }}-
- venv-v1-
- restore_cache:
name: "Load Cache: Yarn"
keys:
- yarn-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
- yarn-v1-{{ .Branch }}-
- yarn-v1-
- run: ./script/setup - run: ./script/setup
- save_cache:
name: "Save Cache: Pipenv Refrences"
paths:
- ~/.local/share
key: pipenv-v1-{{ .Branch }}-{{ checksum "Pipefile.lock" }}
- save_cache:
name: "Save Cache: Python Venv"
paths:
- ./.venv
key: venv-v1-{{ .Branch }}-{{ checksum "Pipefile.lock" }}
- save_cache:
name: "Save Cache: Yarn"
paths:
- ~/.cache/yarn
key: yarn-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
- restore_cache: - restore_cache:
keys: keys:
- disa-crls - disa-crls