Browse Source

❤️ fix cache restore 4

pull/6/merge
Pierre 6 years ago
parent
commit
6de14bd451
  1. 8
      .circleci/config.yml

8
.circleci/config.yml

@ -27,7 +27,7 @@ jobs: # A basic unit of work in a run
# - run: sudo chown -R circleci:circleci /usr/local/lib/python3.8/site-packages # - run: sudo chown -R circleci:circleci /usr/local/lib/python3.8/site-packages
- restore_cache: - restore_cache:
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/ # Read about caching dependencies: https://circleci.com/docs/2.0/caching/
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
key: deps9-{{ .Branch }}-{{ checksum "requirements/dev.txt" }}
- run: - run:
command: | command: |
python3 -m venv venv python3 -m venv venv
@ -39,7 +39,7 @@ jobs: # A basic unit of work in a run
FLASK_DEBUG: 1 FLASK_DEBUG: 1
DATABASE_URL: postgresql://circle_test:pwd@localhost:5432/circle_test DATABASE_URL: postgresql://circle_test:pwd@localhost:5432/circle_test
- save_cache: # cache Python dependencies using checksum of Pipfile as the cache-key - save_cache: # cache Python dependencies using checksum of Pipfile as the cache-key
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
key: deps9-{{ .Branch }}-{{ checksum "requirements/dev.txt" }}
paths: paths:
- "venv" - "venv"
@ -63,7 +63,7 @@ jobs: # A basic unit of work in a run
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
- deps9-{{ .Branch }}-{{ checksum "requirements/dev.txt" }}
- deps9-{{ .Branch }}- - deps9-{{ .Branch }}-
- run: - run:
command: | command: |
@ -77,7 +77,7 @@ jobs: # A basic unit of work in a run
DATABASE_URL: postgresql://circle_test:pwd@localhost:5432/circle_test DATABASE_URL: postgresql://circle_test:pwd@localhost:5432/circle_test
- save_cache: # cache Python dependencies using checksum of Pipfile as the cache-key - save_cache: # cache Python dependencies using checksum of Pipfile as the cache-key
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
key: deps9-{{ .Branch }}-{{ checksum "requirements/dev.txt" }}
paths: paths:
- "venv" - "venv"
heroku: heroku:

Loading…
Cancel
Save