<commit_before>language: python
python:
  - "2.7"

env:
  - DB="POSTGRESQL"
  - DB="MYSQL"

services:
  - mysql
  - postgres

before_install:
  - pip install codecov

install:
  - pip install -e git+https://github.com/tonioo/modoboa.git#egg=modoboa
  - pip install -q factory-boy testfixtures
  - pip install -q psycopg2 mysqlclient
  - python setup.py -q develop

before_script:
  - psql -c 'create database modoboa_test;' -U postgres
  - mysql -e "create database IF NOT EXISTS modoboa_test;" -uroot
  - mysql -e "CREATE USER 'modoboa'@'localhost' IDENTIFIED BY 'modoboa'" -uroot;
  - mysql -e "GRANT ALL PRIVILEGES ON * . * TO 'modoboa'@'localhost';" -uroot;

script: 
  - cd test_project
  - coverage run --source ../modoboa_radicale manage.py test modoboa_radicale.tests

after_success:
  - codecov<commit_msg>Updated travis config.<commit_after>language: python
python:
  - "2.7"

env:
  - DB="POSTGRESQL"
  - DB="MYSQL"

services:
  - mysql
  - postgres

before_install:
  - pip install codecov

install:
  - pip install -e git+https://github.com/tonioo/modoboa.git@refactor/replace_events#egg=modoboa
  - pip install -q factory-boy testfixtures
  - pip install -q psycopg2 mysqlclient
  - python setup.py -q develop

before_script:
  - psql -c 'create database modoboa_test;' -U postgres
  - mysql -e "create database IF NOT EXISTS modoboa_test;" -uroot
  - mysql -e "CREATE USER 'modoboa'@'localhost' IDENTIFIED BY 'modoboa'" -uroot;
  - mysql -e "GRANT ALL PRIVILEGES ON * . * TO 'modoboa'@'localhost';" -uroot;

script: 
  - cd test_project
  - coverage run --source ../modoboa_radicale manage.py test modoboa_radicale.tests

after_success:
  - codecov
{'fraction_non_alphanumeric': 0.11846061334936861, 'fraction_numerical': 0.0036079374624173183, 'mean_word_length': 3.390501319261214, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2162770', 'n_tokens_mistral': 633, 'n_tokens_neox': 624, 'n_words': 161}