---
language: python
python:
    - "2.7"
    - "3.5"
install:
    - pip install codecov flake8
before_script:
    - rm -f monitor.db monitor2.db
    - sqlite3 monitor.db < monitor.sql
    - sqlite3 monitor2.db < monitor.sql
script:
    - flake8 --ignore=E501 *.py Alerters/ Monitors/ Loggers/
    - coverage run monitor.py -1 -v -d -f tests/monitor.ini
    - TEST_VALUE=myenv coverage run --append monitor.py -t -f tests/monitor-env.ini
    - coverage run --append -m unittest discover -s tests
after_success:
    - codecov

---
language: python
python:
    - "2.7"
    - "3.5"
    - "3.6"
    - "3.7-dev"
install:
    - pip install codecov flake8
before_script:
    - rm -f monitor.db monitor2.db
    - sqlite3 monitor.db < monitor.sql
    - sqlite3 monitor2.db < monitor.sql
script:
    - flake8 --ignore=E501 *.py Alerters/ Monitors/ Loggers/
    - coverage run monitor.py -1 -v -d -f tests/monitor.ini
    - TEST_VALUE=myenv coverage run --append monitor.py -t -f tests/monitor-env.ini
    - coverage run --append -m unittest discover -s tests
after_success:
    - codecov
matrix:
  allow_failures:
    - python: "3.6"
    - python: "3.7-dev"

Test on Pythons 3.6 and 3.7 but don't let them break the build yet
Test on Pythons 3.6 and 3.7 but don't let them break the build yet
