diff options
author | Stefan van der Walt <stefanv@berkeley.edu> | 2018-01-25 14:00:00 -0800 |
---|---|---|
committer | Stefan van der Walt <stefanv@berkeley.edu> | 2018-01-27 15:55:32 -0800 |
commit | 2f55785b8da7912bc98c03e50640d6097b8d1f33 (patch) | |
tree | f2c2e86a3d804e3481f9ba39af5ff034b04d7af4 /.circleci | |
parent | 9404833f9d3c5c02eae6713433a0db081a6f2572 (diff) | |
download | numpy-2f55785b8da7912bc98c03e50640d6097b8d1f33.tar.gz |
Add CircleCI builder for devdocs
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..e055739e5 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,61 @@ +# Python CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-python/ for more details +# +version: 2 +jobs: + build: + docker: + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + - image: circleci/python:3.6.1 + + working_directory: ~/repo + + steps: + - checkout + + - run: + name: install dependencies + command: | + python3 -m venv venv + . venv/bin/activate + pip install cython sphinx matplotlib + + - run: + name: build numpy + command: | + . venv/bin/activate + pip install --upgrade pip setuptools + pip install cython + pip install . + + - run: + name: build devdocs + command: | + . venv/bin/activate + cd doc + git submodule update --init + make html + + - run: + name: build neps + command: | + . venv/bin/activate + cd doc/neps + make html + + # - store_artifacts: + # path: doc/build/html/ + # destination: devdocs + + + # - store_artifacts: + # path: doc/neps/_build/html/ + # destination: neps + + - deploy: + command: | + if [ "${CIRCLE_BRANCH}" == "master" ]; then + echo "Deploying on master" + fi |