sudo: false
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
env:
- DB=mongodb
- DB=mysql
- DB=redis-server
before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS testdb;';
  fi"
services:
- mongodb
- redis-server
install:
- pip install --upgrade setuptools
- pip install -r requirements.txt
script: make test
deploy:
  provider: pypi
  user: wandhydrant
  password:
    secure: F1Sg5YXT6ZwsOvo5mfGGLwRTgyaYE/jXQMEyN9Sz223IeuJy8YQYempMAhPZbJY8zKI4FM9KIVNZB6JH9AXjV7fUS4axee8eqrSHFYqEz+gPVk6BYepYtUBw1U6xRbJeMFwNg6kaJvY+TGmyAKEeWyHPLDNEdU+tKHB4fyLnbIc=
  on:
    tags: true
    repo: wndhydrnt/python-oauth2

sudo: false
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
env:
- DB=mongodb
- DB=mysql
- DB=redis-server
before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS testdb;';
  fi"
services:
- mongodb
- redis-server
install:
- pip install --upgrade setuptools
- pip install -r requirements.txt
script: make test
deploy:
  provider: pypi
  user: wandhydrant
  password:
    secure: F1Sg5YXT6ZwsOvo5mfGGLwRTgyaYE/jXQMEyN9Sz223IeuJy8YQYempMAhPZbJY8zKI4FM9KIVNZB6JH9AXjV7fUS4axee8eqrSHFYqEz+gPVk6BYepYtUBw1U6xRbJeMFwNg6kaJvY+TGmyAKEeWyHPLDNEdU+tKHB4fyLnbIc=
  on:
    tags: true
    repo: wndhydrnt/python-oauth2
    condition: $TRAVIS_PYTHON_VERSION = '3.6'

Create new release on 3.6 only
Create new release on 3.6 only
