# Used old infrastructure, needed for integration tests:
# http://docs.travis-ci.com/user/workers/standard-infrastructure/
sudo: true
language: python
python:
  - 2.7

env:
  - TASK=unit
  - TASK=integration
  - TASK=mistral

services:
  - mongodb
  - postgresql
  - rabbitmq

cache:
  directories:
    - $HOME/.cache/pip/

install:
  - pip install python-coveralls
  - make requirements
  - if [ ${TASK} = 'integration' ] || [ ${TASK} = 'mistral' ]; then sudo ./scripts/travis/prepare-integration.sh; fi
  - if [ ${TASK} = 'mistral' ]; then sudo ./scripts/travis/setup-mistral.sh; fi

script:
  - ./scripts/travis/build.sh

after_success:
  - coveralls

# Used old infrastructure, needed for integration tests:
# http://docs.travis-ci.com/user/workers/standard-infrastructure/
sudo: true
language: python
python:
  - 2.7

env:
  - TASK=unit
  - TASK=integration
  - TASK=mistral

matrix:
  fast_finish: true
  allow_failures:
    - env: TASK=mistral

services:
  - mongodb
  - postgresql
  - rabbitmq

cache:
  directories:
    - $HOME/.cache/pip/

install:
  - pip install python-coveralls
  - make requirements
  - if [ ${TASK} = 'integration' ] || [ ${TASK} = 'mistral' ]; then sudo ./scripts/travis/prepare-integration.sh; fi
  - if [ ${TASK} = 'mistral' ]; then sudo ./scripts/travis/setup-mistral.sh; fi

script:
  - ./scripts/travis/build.sh

after_success:
  - coveralls

Allow mistral test to fail and fast finish the build
Allow mistral test to fail and fast finish the build

If mistral is failed - don't mark build as red.
At the same time, mark build as finished without waiting for mistral test results.

See:
http://docs.travis-ci.com/user/customizing-the-build/#Rows-that-are-Allowed-to-Fail
http://docs.travis-ci.com/user/customizing-the-build/#Fast-Finishing
