<commit_before>dist: xenial
language: python
cache: pip

services:
  - postgresql
  - mysql

python:
  - "3.5"

env:
  - TESTING_DB=sqlite3
  - TESTING_DB=postgresql
  - TESTING_DB=mysql

before_install: 

    # - psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE evennia TO evennia;"
  - psql -U postgres -c "CREATE DATABASE evennia;"
  - psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
  - psql -U postgres -c "ALTER USER evennia CREATEDB;"
  - if mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8mb4;"
  - mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
  - mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"

install:
  - if [[ $TESTING_DB == postgresql ]]; then pip install psycopg2-binary fi
  - if [[ $TESTING_DB == mysql ]]; then pip install mysqlclient fi
  - pip install coveralls
  - pip install -e .

before_script:
  - evennia --init testing_mygame
  - cp .travis/${TESTING_DB}_settings.py testing_mygame/server/conf/settings.py
  - cd testing_mygame
  - evennia migrate
  - evennia collectstatic --noinput

script:
  - coverage run --source=../evennia --omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service ../bin/unix/evennia test --settings=settings --keepdb evennia

after_success:
  - coveralls
<commit_msg>Another fix<commit_after>dist: xenial
language: python
cache: pip

services:
  - postgresql
  - mysql

python:
  - "3.5"

env:
  - TESTING_DB=sqlite3
  - TESTING_DB=postgresql
  - TESTING_DB=mysql

before_install: 

    # - psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE evennia TO evennia;"
  - psql -U postgres -c "CREATE DATABASE evennia;"
  - psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
  - psql -U postgres -c "ALTER USER evennia CREATEDB;"
  - mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8mb4;"
  - mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
  - mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"

install:
  - if [[ $TESTING_DB == postgresql ]]; then pip install psycopg2-binary fi
  - if [[ $TESTING_DB == mysql ]]; then pip install mysqlclient fi
  - pip install coveralls
  - pip install -e .

before_script:
  - evennia --init testing_mygame
  - cp .travis/${TESTING_DB}_settings.py testing_mygame/server/conf/settings.py
  - cd testing_mygame
  - evennia migrate
  - evennia collectstatic --noinput

script:
  - coverage run --source=../evennia --omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service ../bin/unix/evennia test --settings=settings --keepdb evennia

after_success:
  - coveralls

{'fraction_non_alphanumeric': 0.1331349944217181, 'fraction_numerical': 0.004462625511342506, 'mean_word_length': 3.345718901453958, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '591137', 'n_tokens_mistral': 1006, 'n_tokens_neox': 988, 'n_words': 270}