Skip to content

Commit

Permalink
Add Python version to cache checksum.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shammamah Hossain committed Nov 7, 2019
1 parent 247c7db commit d42c42b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- run:
name: Check current version of node
command: node -v

- run: echo $PYVERSION > ver.txt
- restore_cache:
key: deps1-{{ .Branch }}-{{ checksum "package.json" }}
key: deps1-{{ .Branch }}-{{ checksum "package.json" }}-{{ checksum "ver.txt" }}

- run:
name: Install package.json
Expand Down Expand Up @@ -67,9 +67,10 @@ jobs:

steps:
- checkout
- run: echo $PYVERSION > ver.txt

- restore_cache:
key: deps1-{{ .Branch }}-{{ checksum "tests/requirements.txt" }}
key: deps1-{{ .Branch }}-{{ checksum "package.json" }}-{{ checksum "ver.txt" }}

- run:
name: Create virtualenv
Expand Down

0 comments on commit d42c42b

Please sign in to comment.