From 13ff089dadfe224274f0c1fce54cd388c9da62fb Mon Sep 17 00:00:00 2001 From: jimmylai Date: Wed, 24 Jul 2019 12:18:28 -0700 Subject: [PATCH] cache tox env files to speed up CI jobs --- .circleci/config.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4412317b..de387910 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,12 +22,18 @@ commands: default: test steps: - checkout + - restore_cache: + key: tox-v1-{{ checksum "tox.ini" }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "setup.py" }}-<< parameters.env >> - run: name: install tox command: pip install --user tox - run: name: run tox command: ~/.local/bin/tox -e << parameters.env >> + - save_cache: + key: tox-v1-{{ checksum "tox.ini" }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "setup.py" }}-<< parameters.env >> + paths: + - '.tox' jobs: lint: