language: python
python:
    - "2.7"
    - "3.5"
    - "3.6"
services:
    - rabbitmq
env:
    - DJANGO="Django>=1.10,<1.11"
    - DJANGO="Django>=1.11,<1.12"
install:
    - pip install -r requirements.txt -e .
    - pip install $DJANGO
    - pip install -r build_requirements.txt
script:
    - py.test
    - flake8 domain_events --max-line-length=120 --exclude=__init__.py
    - sphinx-build -b html docs docs/_build/html

language: python
python:
    - "2.7"
    - "3.5"
    - "3.6"
    - "3.7-dev"
services:
    - rabbitmq
env:
    - DJANGO="Django>=1.10,<1.11"
    - DJANGO="Django>=1.11,<1.12"
    - DJANGO="Django>=2.0,<2.1"
matrix:
    exclude:
        - python: "2.7"
          env: DJANGO="Django>=2.0,<2.1"
install:
    - pip install -r requirements.txt -e .
    - pip install $DJANGO
    - pip install -r build_requirements.txt
script:
    - py.test
    - flake8 domain_events --max-line-length=120 --exclude=__init__.py
    - sphinx-build -b html docs docs/_build/html

Test Django 2.0 and Python 3.7
Test Django 2.0 and Python 3.7
