summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2019-04-21 17:21:58 +0200
committerGitHub <noreply@github.com>2019-04-21 17:21:58 +0200
commit0ec9e229c60b812e04fb696de76b015a4115908b (patch)
tree47f3e2f020ebc22bc4174aadf577f797222b8eff
parent30d884319b0371b49c2c02c221efc9a695a4f621 (diff)
parent6942480d0fa001a26431f8d8fd04fa44173c84d3 (diff)
downloadnumpydoc-0ec9e229c60b812e04fb696de76b015a4115908b.tar.gz
Merge pull request #208 from larsoner/circle
MAINT: Add CircleCI
-rw-r--r--.circleci/config.yml42
-rw-r--r--.gitignore2
2 files changed, 44 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..41d258e
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,42 @@
+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 .
+ git submodule init
+ git submodule update
+ - 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 2b54b22..51259fa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,8 @@
*.egg-info
*.swp
*.swo
+.pytest_cache
+doc/_build
build
dist
doc/_build