sudo: false

language: python

python:
  - "2.7"
  - "3.3"
  - "3.4"

env:
  - PARSER=native
  - PARSER=lxml

matrix:
  include:
    - python: "3.4"
      env:
        - PARSER=native
        - VCR_RECORD_MODE=all
        - PYTEST_ADDOPTS="-m integration"
  allow_failures:
    - env: VCR_RECORD_MODE=all

cache:
  directories:
    - $HOME/.cache/pip
    - tests/data/mkv

before_cache:
  - rm -f $HOME/.cache/pip/log/debug.log

install:
  - pip install -e .[test]
  - if [ $PARSER = "lxml" ]; then pip install lxml; fi
  - pip install coveralls

script: python setup.py test -a "--cov subliminal --verbose"

after_success: coveralls

sudo: false

language: python

python:
  - "2.7"
  - "3.3"
  - "3.4"

env:
  - PARSER=native
  - PARSER=lxml

matrix:
  include:
    - python: "3.4"
      env:
        - PARSER=native
        - VCR_RECORD_MODE=all
        - PYTEST_ADDOPTS="-m integration"
  allow_failures:
    - env: VCR_RECORD_MODE=all

cache:
  directories:
    - $HOME/.cache/pip
    - tests/data/mkv

before_cache:
  - rm -f $HOME/.cache/pip/log/debug.log

install:
  - pip install -e .[test]
  - if [ $PARSER = "lxml" ]; then pip install lxml; fi
  - pip install coveralls

script: python setup.py test -a "--cov subliminal --verbose $PYTEST_ADDOPTS"

after_success: coveralls

Make sure extra pytest opts are passed to the test command
Make sure extra pytest opts are passed to the test command
