Skip to content

Commit

Permalink
Split docs steps out
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes committed Jun 17, 2021
1 parent ab4d62a commit 41a6876
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,32 @@ common: &common
- run:
name: install dependencies
command: pip install --user tox
- run:
name: run tox
command: ~/.local/bin/tox -r
- save_cache:
paths:
- .tox
- ~/.cache/pip
- ~/.local
- ./eggs
- ~/.ethash
- ~/.py-geth
key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}

docs_steps: &docs_steps
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- cache-docs-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
- run:
name: checkout ethpm-spec submodule
command: git submodule update --init --recursive
- run:
name: install dependencies
command: pip install --user tox
- run:
name: install web3
command: pip install -U web3
Expand All @@ -29,7 +55,7 @@ common: &common
- ./eggs
- ~/.ethash
- ~/.py-geth
key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
key: cache-docs-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}

# parity_steps: &parity_steps
# working_directory: ~/repo
Expand Down Expand Up @@ -187,7 +213,7 @@ jobs:
TOXENV: lint

docs:
<<: *common
<<: *docs_steps
docker:
- image: circleci/python:3.6
environment:
Expand Down

0 comments on commit 41a6876

Please sign in to comment.