language: python

dist: xenial

sudo: false

cache:
  pip: true
  directories:
  - $HOME/.m2
  - $HOME/.npm

services:
  - mysql

python:
  - "3.6"
  - "3.7"
  - "3.8"

install:
  - pip install -U pip wheel coveralls
  - pip install -r requirements/development.txt
  - pip install -r requirements/production.txt
  - npm install

before_script:
  - mysql -e 'CREATE DATABASE pyophase;'

# command to run tests
script:
  - export PYTHONWARNINGS=all
  - python manage.py check
  - python manage.py makemigrations --dry-run --check
    # Test against SQLite
  - coverage run manage.py test
    # Test against MySQL
  - coverage run manage.py test --settings pyophase.settings_travis

after_success:
  coveralls

language: python

cache:
  pip: true
  directories:
  - $HOME/.m2
  - $HOME/.npm

services:
  - mysql

python:
  - "3.6"
  - "3.7"
  - "3.8"

install:
  - pip install -U pip wheel coveralls
  - pip install -r requirements/development.txt
  - pip install -r requirements/production.txt
  - npm install

before_script:
  - mysql -e 'CREATE DATABASE pyophase;'

# command to run tests
script:
  - export PYTHONWARNINGS=all
  - python manage.py check
  - python manage.py makemigrations --dry-run --check
    # Test against SQLite
  - coverage run manage.py test
    # Test against MySQL
  - coverage run -a manage.py test --settings pyophase.settings_travis

after_success:
  coveralls

Remove depricated sudo, xenial is now the default, append coverage results
Remove depricated sudo, xenial is now the default, append coverage results
