summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Larson <larson.eric.d@gmail.com>2019-08-13 09:38:37 -0400
committerGitHub <noreply@github.com>2019-08-13 09:38:37 -0400
commite4bc7a7359edae336f1eb5ef5f477c44d6893dd3 (patch)
tree04d3f8894c60e135064870a059024c6fde2a912e
parentc30672f8ad822d98d57b495555df646ed715f04a (diff)
downloadscipy-sphinx-theme-e4bc7a7359edae336f1eb5ef5f477c44d6893dd3.tar.gz
MAINT: Add CircleCI (#15)
-rw-r--r--.circleci/config.yml65
1 files changed, 65 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..ea683ea
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,65 @@
+version: 2
+jobs:
+ build_docs:
+ docker:
+ # CircleCI maintains a library of pre-built images
+ # documented at https://circleci.com/docs/2.0/circleci-images/
+ - image: circleci/python:3.7.0
+
+ working_directory: ~/scipy-sphinx-theme
+
+ steps:
+ - checkout
+
+ - run:
+ name: clone and configure SciPy repo
+ command: |
+ git clone https://github.com/scipy/scipy.git ~/repo
+
+ - run:
+ name: update submodules
+ command: |
+ cd ~/repo
+ git submodule init
+ git submodule update
+
+ - run:
+ name: install Debian dependencies
+ command: |
+ sudo apt-get update
+ sudo apt-get install libatlas-dev libatlas-base-dev liblapack-dev gfortran libgmp-dev libmpfr-dev libfreetype6-dev libpng-dev zlib1g zlib1g-dev texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra texlive-generic-extra latexmk texlive-xetex fonts-freefont-otf
+
+ - run:
+ name: setup Python venv
+ command: |
+ python3 -m venv venv
+ . venv/bin/activate
+ pip install --install-option="--no-cython-compile" cython
+ pip install numpy
+ pip install nose mpmath argparse Pillow codecov matplotlib Sphinx
+ pip install pybind11
+
+ - run:
+ name: override scipy-sphinx-theme in repo
+ command: |
+ cd ~/repo/doc
+ rm -Rf scipy-sphinx-theme
+ ln -s ~/scipy-sphinx-theme
+
+ - run:
+ name: build docs
+ command: |
+ . venv/bin/activate
+ cd ~/repo
+ export SHELL=$(which bash)
+ python -u runtests.py -g --shell -- -c 'make -C doc PYTHON=python html-scipyorg'
+
+ - store_artifacts:
+ path: ~/repo/doc/build/html-scipyorg
+ destination: html-scipyorg
+
+workflows:
+ version: 2
+ default:
+ jobs:
+ - build_docs