dist: xenial
language: python
python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  - 3.7
addons:
  - rethinkdb: 2.3
install:
  - pip install .
script: py.test tests/
deploy:
  provider: pypi
  user: $PYPI_USER
  password: $PYPI_PASSWORD
  on:
    tags: true

dist: xenial
language: python
python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  - 3.7
addons:
  - rethinkdb: 2.3
install:
  - pip install .[dev]
script: pytest
deploy:
  provider: pypi
  user: $PYPI_USER
  password: $PYPI_PASSWORD
  on:
    tags: true

Update script step on Travis
Update script step on Travis
