# 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

Add CircleCI builder for devdocs
Add CircleCI builder for devdocs
