sudo: false
language: python
cache: pip
python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
addons:
  postgresql: "9.4"
env:
  - BLINKER=1 DATABASE_URI=postgresql://localhost/travis_ci_test
  - BLINKER=1 DATABASE_URI=sqlite://
  - BLINKER=0 DATABASE_URI=sqlite://

branches:
  only:
  - master

before_script:
  - if [[ $DATABASE_URI == postgresql* ]]; then psql -c 'create database travis_ci_test;' -U postgres; fi
install:
  - travis_retry pip install -r requirements.txt
  - travis_retry pip install -r dev-requirements.txt
  - if [[ $BLINKER == 1 ]]; then travis_retry pip install blinker; fi
  - if [[ $DATABASE_URI == postgresql* ]]; then travis_retry pip install psycopg2; fi
  - travis_retry pip install codecov
  - pip install -e .
script:
  - py.test --cov=flask_dance
after_success:
  - codecov

sudo: false
language: python
cache: pip
python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
addons:
  postgresql: "9.4"
env:
  - BLINKER=1 DATABASE_URI=postgresql://localhost/travis_ci_test
  - BLINKER=1 DATABASE_URI=sqlite://
  - BLINKER=0 DATABASE_URI=sqlite://

branches:
  only:
  - master

before_script:
  - if [[ $DATABASE_URI == postgresql* ]]; then psql -c 'create database travis_ci_test;' -U postgres; fi
install:
  - travis_retry pip install -U pytest
  - travis_retry pip install -r requirements.txt
  - travis_retry pip install -r dev-requirements.txt
  - if [[ $BLINKER == 1 ]]; then travis_retry pip install blinker; fi
  - if [[ $DATABASE_URI == postgresql* ]]; then travis_retry pip install psycopg2; fi
  - travis_retry pip install codecov
  - pip install -e .
script:
  - py.test --cov=flask_dance
after_success:
  - codecov

Upgrade pytest on Travis CI
Upgrade pytest on Travis CI
