dist: xenial
language: python
python:
    - 3.5
    - 3.6
    - 3.7
# virtualenv:
#    system_site_packages: true
services:
    - mysql
addons:
    apt:
        packages:
            - xvfb
cache:
    directories:
        - /usr/share/dragonfire
before_install:
    - mysql -u root -e "CREATE DATABASE dragonfire;"
install:
    - sudo ./install-dev.sh --no-model
    - sudo pip3 install pytest-faulthandler tinydb
    - export DISPLAY=':99.0'
    - Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
before_script:
    # stop the build if there are Python syntax errors or undefined names
    - flake8 . --count --select=E901,E999,F822,F823 --show-source --statistics
    # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
    - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
    - python -m pytest --capture=sys
notifications:
    on_success: change
    on_failure: change  # `always` will be the setting once code changes slow down

dist: xenial
sudo: required
language: python
virtualenv:
    system_site_packages: true
python:
    - 3.5
    - 3.6
    - 3.7
services:
    - mysql
addons:
    apt:
        packages:
            - xvfb
cache:
    directories:
        - /usr/share/dragonfire
before_install:
    - mysql -u root -e "CREATE DATABASE dragonfire;"
install:
    - sudo ./install-dev.sh --no-model
    - sudo pip3 install pytest-faulthandler
    - export DISPLAY=':99.0'
    - Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
before_script:
    # stop the build if there are Python syntax errors or undefined names
    - flake8 . --count --select=E901,E999,F822,F823 --show-source --statistics
    # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
    - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
    - python -m pytest --capture=sys
notifications:
    on_success: change
    on_failure: change  # `always` will be the setting once code changes slow down

Revert back some of the changes of the last PR to fix Travis CI errors
Revert back some of the changes of the last PR to fix Travis CI errors
