Skip to content

Commit

Permalink
circle cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
abulte committed Mar 13, 2018
1 parent 423f468 commit b71442c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ jobs:
command: export BASE_BRANCH=$(base_branch)
- restore_cache:
keys:
- py-cache-v3-{{ arch }}-{{ checksum "python.deps" }}
- py-cache-v3-{{ arch }}-{{ .Branch }}
- py-cache-v3-{{ arch }}-{{ .Environment.BASE_BRANCH }}
- py-cache-v4-{{ arch }}-{{ checksum "python.deps" }}
- py-cache-v4-{{ arch }}-{{ .Branch }}
- py-cache-v4-{{ arch }}-{{ .Environment.BASE_BRANCH }}
- run:
name: Install python dependencies
command: |
virtualenv venv
source venv/bin/activate
pip install -r requirements/develop.pip || pip install -r requirements/develop.pip
- save_cache:
key: py-cache-v3-{{ arch }}-{{ checksum "python.deps" }}
key: py-cache-v4-{{ arch }}-{{ checksum "python.deps" }}
paths:
- venv
- save_cache:
key: py-cache-v3-{{ arch }}-{{ .Branch }}
key: py-cache-v4-{{ arch }}-{{ .Branch }}
paths:
- venv
- run:
Expand Down

0 comments on commit b71442c

Please sign in to comment.