machine:
  python:
    version: 3.5.1
  services:
    - redis
  environment:
    DEBUG: 'true'
    DEFAULT_FORK: 'open-craft/edx-platform'
    INSTANCE_EPHEMERAL_DATABASES: 'false'
    LOAD_BALANCER_FRAGMENT_NAME_PREFIX: 'integration-'
    TEST_RUNNER: 'opencraft.tests.utils.CircleCIParallelTestRunner'
    WATCH_FORK: 'open-craft/edx-platform'
    WATCH_ORGANIZATION: 'open-craft'
dependencies:
  pre:
    - pip install --upgrade pip
    - pip install --upgrade virtualenv
    # Update python to latest 2.6.* release from the deadsnakes PPA.
    # Ubuntu 14.04 which we currently use on CircleCI comes with 2.7.6 preinstalled,
    # which does not support SNI. When CircleCI starts providing Ubuntu 16.04 images,
    # this won't be needed anymore.
    - sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7 -y
    - sudo apt-get update; sudo apt-get install python2.7 python2.7-dev
  override:
    - pip install -r requirements.txt
database:
  override:
    - make create_db
test:
  override:
    - bin/run-circleci-tests:
        timeout: 1800
        parallel: true
  post:
    - make test_integration_cleanup

machine:
  python:
    version: 3.5.1
  services:
    - redis
  environment:
    DEBUG: 'true'
    DEFAULT_FORK: 'open-craft/edx-platform'
    INSTANCE_EPHEMERAL_DATABASES: 'false'
    LOAD_BALANCER_FRAGMENT_NAME_PREFIX: 'integration-'
    TEST_RUNNER: 'opencraft.tests.utils.CircleCIParallelTestRunner'
    WATCH_FORK: 'open-craft/edx-platform'
    WATCH_ORGANIZATION: 'open-craft'
dependencies:
  pre:
    - pip install --upgrade pip
    - pip install --upgrade virtualenv
    # Update python to latest 2.6.* release from the deadsnakes PPA.
    # Ubuntu 14.04 which we currently use on CircleCI comes with 2.7.6 preinstalled,
    # which does not support SNI. When CircleCI starts providing Ubuntu 16.04 images,
    # this won't be needed anymore.
    - sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7 -y
    - sudo apt-get update; sudo apt-get install python2.7 python2.7-dev
  override:
    - pip install -r requirements.txt
database:
  override:
    - make create_db
test:
  override:
    - bin/run-circleci-tests:
        timeout: 1800
        parallel: true
  post:
    - make test_integration_cleanup:
        timeout: 1200

Increase timeout allowed for cleanup script
Increase timeout allowed for cleanup script
