mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
Fix circleci cache to speed up CI builds
This commit is contained in:
parent
14ee31dc6a
commit
f059638b08
1 changed files with 4 additions and 6 deletions
|
|
@ -23,7 +23,7 @@ commands:
|
|||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
key: tox-v1-{{ checksum "tox.ini" }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "setup.py" }}-<< parameters.env >>
|
||||
key: tox-v1-{{ checksum "tox.ini" }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "setup.py" }}-{{ checksum ".circleci/config.yml" }}-<< parameters.env >>
|
||||
- run:
|
||||
name: install tox
|
||||
command: pip install --user tox
|
||||
|
|
@ -31,7 +31,7 @@ commands:
|
|||
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 >>
|
||||
key: tox-v1-{{ checksum "tox.ini" }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "setup.py" }}-{{ checksum ".circleci/config.yml" }}-<< parameters.env >>
|
||||
paths:
|
||||
- '.tox'
|
||||
|
||||
|
|
@ -46,8 +46,6 @@ jobs:
|
|||
docs:
|
||||
docker:
|
||||
- image: circleci/python:3.7
|
||||
environment:
|
||||
TOXENV: docs
|
||||
steps:
|
||||
- run:
|
||||
command: sudo apt-get install graphviz
|
||||
|
|
@ -76,11 +74,11 @@ jobs:
|
|||
- image: circleci/python:3.7
|
||||
steps:
|
||||
- tox:
|
||||
env: "docs"
|
||||
env: "py37"
|
||||
|
||||
test-36:
|
||||
docker:
|
||||
- image: circleci/python:3.6
|
||||
steps:
|
||||
- tox:
|
||||
env: "docs"
|
||||
env: "py36"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue