language: python

dist: xenial

python:
 - "3.6"
 - "3.7"
 - "3.6-dev"
 - "3.7-dev"
 - "nightly"
 - "pypy3.5"

matrix:
  allow_failures:
  - python: 'pypy3.5'

services:
 - redis-server
 - postgresql

addons:
  postgresql: "10"

install:
 - pip install -r requirements.txt -r requirements-test.txt
 - pip install coveralls

before_script:
  - psql -c "ALTER USER travis WITH PASSWORD 'travis';"
  - psql -c 'create database mygpo_test;' -U postgres

script:
  - make check-code-format
  - pytest --cov=mygpo/ --cov-branch

after_script:
  - coveralls

env:
 - DATABASE_URL="postgres://travis:travis@localhost/mygpo_test"

language: python

dist: xenial

python:
 - "3.6"
 - "3.7"
 - "3.6-dev"
 - "3.7-dev"
 - "3.8-dev"
 - "nightly"
 - "pypy3.5"

matrix:
  allow_failures:
  - python:
    'pypy3.5'
    '3.8-dev'
    'nightly'

services:
 - redis-server
 - postgresql

addons:
  postgresql: "10"

install:
 - pip install -r requirements.txt -r requirements-test.txt
 - pip install coveralls

before_script:
  - psql -c "ALTER USER travis WITH PASSWORD 'travis';"
  - psql -c 'create database mygpo_test;' -U postgres

script:
  - make check-code-format
  - pytest --cov=mygpo/ --cov-branch

after_script:
  - coveralls

env:
 - DATABASE_URL="postgres://travis:travis@localhost/mygpo_test"

Allow test failures on unsupported Python versions
Allow test failures on unsupported Python versions
