Skip to content

Commit 5e1c811

Browse files
committed
BNCASB-2204: Adding caching step to fasten the circleci process
1 parent 07aed48 commit 5e1c811

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.circleci/config.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,19 @@ jobs:
2424
steps:
2525
- add_ssh_keys
2626
- checkout
27+
- restore_cache:
28+
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
2729
- run:
2830
name: Install dependencies
29-
command: sudo pip install -r development.txt
31+
command: |
32+
sudo pip install pipenv
33+
pipenv install -r development.txt
34+
- save_cache:
35+
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
36+
paths:
37+
- "/usr/local/bin"
38+
- "/usr/local/lib/python2.7/site-packages"
3039
- run:
3140
name: Run tests
32-
command: python -m django test --settings=eb_sqs.test_settings
41+
command: |
42+
pipenv run python -m django test --settings=eb_sqs.test_settings

0 commit comments

Comments
 (0)