diff options
-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 |