<commit_before>dist: xenial

services:
    - mysql
    - postgresql

language: python
python:
    - 3.6
    - 3.7

addons:
    apt-packages:
        - sqlite3

before_install:
    - sudo apt-get update
    - sudo apt-get install gettext
    - pip3 install invoke
    - invoke install
    - invoke migrate
    - cd InvenTree && python3 manage.py createsuperuser --username InvenTreeAdmin --email <EMAIL> --noinput && cd ..
    - psql -c 'create database inventree_test_db;' -U postgres
    - mysql -e 'CREATE DATABASE inventree_test_db;'

script:
    - cd InvenTree && python3 manage.py makemigrations && cd ..
    - python3 ci/check_migration_files.py
    - invoke coverage
    - invoke test --database=mysql
    - invoke translate
    - invoke style

after_success:
    - coveralls<commit_msg>Install required PIP packages<commit_after>dist: xenial

services:
    - mysql
    - postgresql

language: python
python:
    - 3.6
    - 3.7

addons:
    apt-packages:
        - sqlite3

before_install:
    - sudo apt-get update
    - sudo apt-get install gettext
    - pip3 install invoke
    - pip3 install mysqlclient
    - pip3 install psycopg2
    - invoke install
    - invoke migrate
    - cd InvenTree && python3 manage.py createsuperuser --username InvenTreeAdmin --email <EMAIL> --noinput && cd ..
    - psql -c 'create database inventree_test_db;' -U postgres
    - mysql -e 'CREATE DATABASE inventree_test_db;'

script:
    - cd InvenTree && python3 manage.py makemigrations && cd ..
    - python3 ci/check_migration_files.py
    - invoke coverage
    - invoke test --database=mysql
    - invoke translate
    - invoke style

after_success:
    - coveralls
{'fraction_non_alphanumeric': 0.08899579073962718, 'fraction_numerical': 0.012627781118460614, 'mean_word_length': 2.3959183673469386, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '3978241', 'n_tokens_mistral': 545, 'n_tokens_neox': 525, 'n_words': 150}