sudo: false
language: python
python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
- 'pypy-5.4'
env:
- DEPS="pytest~=2.9.0"
- DEPS="pytest~=3.0.0"
#- DEPS="pytest~=3.1.0"

matrix:

  include:
  - python: '2.7'
    # using a different option due to pytest-addopts pytester issues
    env: PYTEST_XADDOPTS="-n 3 --runslowtests" DEPS="pytest~=3.0.0 pytest-xdist"
  allow_failures:
  - python: 'pypy-5.4'
install:
- pip install -U setuptools setuptools_scm
- pip install $DEPS
- pip install -U . --force-reinstall
script:
- py.test --lsof $PYTEST_XADDOPTS
