Skip to content

Commit

Permalink
Install doc in circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauko Quiroga committed Aug 29, 2021
1 parent cf5f1d8 commit 88b2693
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,28 @@ jobs:
name: Checkout docs
command: make test.doc.checkout branch=$CIRCLE_BRANCH

- restore_cache:
key: v1-py3-{{ .Branch }}-{{ checksum "setup.py" }}

- restore_cache:
key: v1-py3-docs-{{ .Branch }}-{{ checksum "doc/requirements.txt" }}

- run:
name: Create a virtualenv
command: |
mkdir -p /tmp/venv/openfisca_doc
python -m venv /tmp/venv/openfisca_doc
echo "source /tmp/venv/openfisca_doc/bin/activate" >> $BASH_ENV
- run:
name: Install dependencies
command: make test.doc.install

- save_cache:
key: v1-py3-docs-{{ .Branch }}-{{ checksum "doc/requirements.txt" }}
paths:
- /tmp/venv/openfisca_doc

check_version:
docker:
- image: python:3.7
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ test.doc.checkout:
## Install doc dependencies.
test.doc.install:
@$(call help,$@:)
@pip install --requirement doc/requirements.txt --use-deprecated=legacy-resolver 1> /dev/null
@pip install --requirement doc/requirements.txt 1> /dev/null
@pip install --editable .[dev] --upgrade 1> /dev/null

## Dry-build the doc.
Expand Down

0 comments on commit 88b2693

Please sign in to comment.