<commit_before>language: rust
rust:
  - nightly

env:
  global:
  - SCHANI_TEST=schani

matrix:
  include:
  - rust: nightly
    env: SCHANI_TEST=schani_import
  - rust: nightly
    env: SCHANI_TEST=schani_processor
  - rust: nightly
    env: SCHANI_TEST=schani_store
  - rust: nightly
    env: SCHANI_TEST=schani_upload
  fast_finish: true

branches:
  only:
  - master

services:
  - mysql

cache: cargo

before_script:
  - cd $SCHANI_TEST

  # Prepare DB
  - mysql -u root -e "create database schani_import;"
  - mysql -u root -e "CREATE USER 'schani'@'localhost' IDENTIFIED BY '123456';"
  - mysql -u root -e "GRANT ALL ON schani_import.* TO 'schani'@'localhost';"

script:
  - echo Testing $SCHANI_TEST

  # Copy testing env file if one exists
  - if [[ -f .env.testing ]]; then cp .env.testing .env; fi

  # Migrate<commit_msg>Fix test suite name for Travis<commit_after>language: rust
rust:
  - nightly

env:
  global:
  - SCHANI_TEST=schani

matrix:
  include:
  - rust: nightly
    env: SCHANI_TEST=schani_import
  - rust: nightly
    env: SCHANI_TEST=schani_processor
  - rust: nightly
    env: SCHANI_TEST=schani_store
  - rust: nightly
    env: SCHANI_TEST=schani_uploader
  fast_finish: true

branches:
  only:
  - master

services:
  - mysql

cache: cargo

before_script:
  - cd $SCHANI_TEST

  # Prepare DB
  - mysql -u root -e "create database schani_import;"
  - mysql -u root -e "CREATE USER 'schani'@'localhost' IDENTIFIED BY '123456';"
  - mysql -u root -e "GRANT ALL ON schani_import.* TO 'schani'@'localhost';"

script:
  - echo Testing $SCHANI_TEST

  # Copy testing env file if one exists
  - if [[ -f .env.testing ]]; then cp .env.testing .env; fi

  # Migrate
{'fraction_non_alphanumeric': 0.10563798219584569, 'fraction_numerical': 0.007121661721068249, 'mean_word_length': 3.1732673267326734, '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': '43847', 'n_tokens_mistral': 658, 'n_tokens_neox': 640, 'n_words': 176}