language: python
python:
- '3.6'
- '3.7'

matrix:
  allow_failures:
  - python: 3.7

cache:
  directories:
    - $HOME/.cache/pip

env:
- DJANGO=Django>=1.9
sudo: false
addons:
  postgresql: '10'
  apt:
    packages:
      postgresql-10-postgis-2.5
      postgresql-10-postgis-2.5-scripts

install:
- pip install --upgrade pip
- pip install codecov pytest-cov -r requirements.txt

before_script:
- psql template1 -c 'create extension hstore;'
- psql template1 -c 'create extension postgis;'

script:
- flake8 events
- py.test --cov . events
- flake8 extension_course
- py.test --cov . extension_course --ds=extension_course.tests.settings

before_cache:
- rm -f $HOME/.cache/pip/log/debug.log

notifications:
  slack:
    secure: Hxh7X9ckorBlD2MRiSh/TE6nC0kyEZrEmegx3FHQgwOm5tNCZcJUoJprmEXA82SMxlbl12XcNLhFZaeQd6Gt2AF5AvTjbJLsLZBRebbKA6We1dCSpyHSGXy+GGWRD0J1OYstk2jg5fWmsscusLZ0MFbybg8qwmsv7/LOG+QoX6M=

after_success: codecov

language: python
python:
- '3.6'
- '3.7'
- '3.8'

cache:
  directories:
    - $HOME/.cache/pip

env:
- DJANGO=Django>=1.9
sudo: false
addons:
  postgresql: '10'
  apt:
    packages:
      postgresql-10-postgis-2.5
      postgresql-10-postgis-2.5-scripts

install:
- pip install --upgrade pip
- pip install codecov pytest-cov -r requirements.txt

before_script:
- psql template1 -c 'create extension hstore;'
- psql template1 -c 'create extension postgis;'

script:
- flake8 events
- py.test --cov . events
- flake8 extension_course
- py.test --cov . extension_course --ds=extension_course.tests.settings

before_cache:
- rm -f $HOME/.cache/pip/log/debug.log

notifications:
  slack:
    secure: Hxh7X9ckorBlD2MRiSh/TE6nC0kyEZrEmegx3FHQgwOm5tNCZcJUoJprmEXA82SMxlbl12XcNLhFZaeQd6Gt2AF5AvTjbJLsLZBRebbKA6We1dCSpyHSGXy+GGWRD0J1OYstk2jg5fWmsscusLZ0MFbybg8qwmsv7/LOG+QoX6M=

after_success: codecov

Add Python 3.8 to CI
Add Python 3.8 to CI