version: 2
jobs:
  build:
    docker:
      - image: openchemistry/mongochemserver:latest
        environment:
          - CIRCLE_BRANCH: ${CIRCLE_BRANCH}
          - CIRCLE_BUILD_NUM: ${CIRCLE_BUILD_NUM}
      - image: mongo:latest
    working_directory: /mongochemserver
    steps:
      - checkout
      - run:
          name: Install requirements
          command: >
            pip install -U --no-cache-dir -r /mongochemserver/requirements-dev.txt
      - run:
          name: Install the plugins
          command: >
            pip install -e /mongochemserver/girder/molecules

      - run:
          name: Install girder_pytest
          command: >
            git clone https://github.com/girder/girder.git /girder_pytest &&
            cd /girder_pytest &&
            pip install --no-cache-dir -r requirements-dev.txt

      - run:
          name: Run pytest
          command: 'pytest ./girder/molecules/plugin_tests/'

workflows:
  version: 2
  ci:
    jobs:
      - build

version: 2
jobs:
  build:
    docker:
      - image: openchemistry/mongochemserver:latest
        environment:
          - CIRCLE_BRANCH: ${CIRCLE_BRANCH}
          - CIRCLE_BUILD_NUM: ${CIRCLE_BUILD_NUM}
      - image: mongo:latest
      - image: openchemistry/openbabel:latest
    working_directory: /mongochemserver
    steps:
      - checkout
      - run:
          name: Install requirements
          command: >
            pip install -U --no-cache-dir -r /mongochemserver/requirements-dev.txt
      - run:
          name: Install the plugins
          command: >
            pip install -e /mongochemserver/girder/molecules

      - run:
          name: Install girder_pytest
          command: >
            git clone https://github.com/girder/girder.git /girder_pytest &&
            cd /girder_pytest &&
            pip install --no-cache-dir -r requirements-dev.txt

      - run:
          name: Run pytest
          command: 'pytest ./girder/molecules/plugin_tests/'

workflows:
  version: 2
  ci:
    jobs:
      - build

Add Open Babel flask container to CircleCI
Add Open Babel flask container to CircleCI

It seems to start it up automatically and connect to its default
port, 5000. So this will hopefully work once we push the Open Babel
docker image to dockerhub.

Signed-off-by: Patrick Avery <743342299f279e7a8c3ff5eb40671fce3e95f13a@kitware.com>
