language: python
python:
    - 2.7
    - 3.4
    - 3.5
    - 3.6
env:
    - TORNADO_VERSION=5.0 PYTEST_VERSION=4.0
    - TORNADO_VERSION=5.0.0 PYTEST_VERSION=3.6
    - TORNADO_VERSION=5.0.0 PYTEST_VERSION=4.0.0
    - TORNADO_VERSION=4.3.0 PYTEST_VERSION=3.6
    - TORNADO_VERSION=4.1.0 PYTEST_VERSION=3.6.4
install:
    - pip install -q tornado~=$TORNADO_VERSION pytest~=$PYTEST_VERSION
    - python setup.py install
    - pip install pytest-cov coveralls
script:
    - py.test --strict

jobs:
  include:
    - stage: deploy
      deploy:
        provider: pypi
        distributions: sdist bdist_wheel
        user: eugeniy
        password:
          secure: gmpsfekSDT9LuF3XkJK64myhQ6Xg8WyqI/0m5Gnnb+hSrCFGD8/dgtRdLEULuDkFPvL/FsoE2L6XcdKuqaKkqSM3kk4Min8hqGapcfe/OSOkCDaYSUBCXmV2dlbtMTAzHfo3zpueToUelZvblw9y3wXVFWkmr1mf47Q9kUPIgnU=
        on:
          tags: true

language: python
dist: xenial
python:
    - 2.7
    - 3.4
    - 3.5
    - 3.6
    - 3.7
env:
    - TORNADO_VERSION=5.0 PYTEST_VERSION=4.0
    - TORNADO_VERSION=5.0.0 PYTEST_VERSION=3.6
    - TORNADO_VERSION=5.0.0 PYTEST_VERSION=4.0.0
    - TORNADO_VERSION=4.3.0 PYTEST_VERSION=3.6
    - TORNADO_VERSION=4.1.0 PYTEST_VERSION=3.6.4
install:
    - pip install -q tornado~=$TORNADO_VERSION pytest~=$PYTEST_VERSION
    - python setup.py install
    - pip install pytest-cov coveralls
script:
    - py.test --strict

jobs:
  include:
    - stage: deploy
      deploy:
        provider: pypi
        distributions: sdist bdist_wheel
        user: eugeniy
        password:
          secure: gmpsfekSDT9LuF3XkJK64myhQ6Xg8WyqI/0m5Gnnb+hSrCFGD8/dgtRdLEULuDkFPvL/FsoE2L6XcdKuqaKkqSM3kk4Min8hqGapcfe/OSOkCDaYSUBCXmV2dlbtMTAzHfo3zpueToUelZvblw9y3wXVFWkmr1mf47Q9kUPIgnU=
        on:
          tags: true

Add CI for python 3.7
Add CI for python 3.7
