language: python

notification:
  email:
    on_success: never
    on_failure: always

python:
  - 3.6

services:
  - postgresql

install:
  - pip install -r requirements.txt

before_script:
  - psql -c 'create database travis_ci_test;' -U postgres
  - cd oshc/
  - python manage.py migrate --noinput
  - python manage.py collectstatic --noinput

script:
  - coverage run --source='main' manage.py test --verbosity 2

after_success:
  - coverage report

language: python

notification:
  email:
    on_success: never
    on_failure: always

python:
  - 3.6

services:
  - postgresql

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

before_script:
  - psql -c 'create database travis_ci_test;' -U postgres
  - cd oshc/
  - python manage.py migrate --noinput
  - python manage.py collectstatic --noinput

script:
  - coverage run --source='main' manage.py test --verbosity 2

after_success:
  - coverage report
  - coveralls

Use coveralls.io to track test coverage
Use coveralls.io to track test coverage
