From 80e2602b11c4a3ef75090ed1130fb9e7132e3d8c Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Wed, 17 Apr 2019 21:46:14 -0400 Subject: [PATCH 1/2] MAINT: Add CircleCI --- .circleci/config.yml | 40 ++++++++++++++++++++++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..f1c5ad19 --- /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 diff --git a/.gitignore b/.gitignore index 81562fd2..42b35d4a 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,7 @@ *.egg-info *.swp *.swo +.pytest_cache +doc/_build build dist From 6942480d0fa001a26431f8d8fd04fa44173c84d3 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 18 Apr 2019 10:46:05 -0400 Subject: [PATCH 2/2] FIX: Submodule --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index f1c5ad19..41d258e5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,6 +19,8 @@ jobs: pip install --user -q --upgrade pip setuptools pip install --user -q --upgrade numpy matplotlib sphinx pip install --user -e . + git submodule init + git submodule update - save_cache: key: pip-cache paths: