diff options
author | Eric Larson <larson.eric.d@gmail.com> | 2019-04-17 21:46:14 -0400 |
---|---|---|
committer | Eric Larson <larson.eric.d@gmail.com> | 2019-04-18 10:44:58 -0400 |
commit | 80e2602b11c4a3ef75090ed1130fb9e7132e3d8c (patch) | |
tree | e932e6da14fee76c05e517f0f8744fd0f89b9a59 | |
parent | c2e8b8f5fea8f0adde207436869cec0841e85262 (diff) | |
download | numpydoc-80e2602b11c4a3ef75090ed1130fb9e7132e3d8c.tar.gz |
MAINT: Add CircleCI
-rw-r--r-- | .circleci/config.yml | 40 | ||||
-rw-r--r-- | .gitignore | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..f1c5ad1 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,40 @@ +version: 2 +jobs: + build_docs: + docker: + - image: circleci/python:3.7-stretch + steps: + - checkout + - run: + name: Set BASH_ENV + command: | + echo "set -e" >> $BASH_ENV; + echo "export PATH=~/.local/bin:$PATH" >> $BASH_ENV; + - restore_cache: + keys: + - pip-cache + - run: + name: Get dependencies and install + command: | + pip install --user -q --upgrade pip setuptools + pip install --user -q --upgrade numpy matplotlib sphinx + pip install --user -e . + - save_cache: + key: pip-cache + paths: + - ~/.cache/pip + - run: + name: make html + command: | + cd doc + make html + - store_artifacts: + path: doc/_build/html/ + destination: html + +workflows: + version: 2 + + default: + jobs: + - build_docs @@ -6,5 +6,7 @@ *.egg-info *.swp *.swo +.pytest_cache +doc/_build build dist |