<commit_before>dist: trusty
sudo: required
group: deprecated
notifications:
  email:
    - <EMAIL>
env:
  - DB=mysql
  - DB=postgresql
addons:
  postgresql: "9.4"
  apt:
    packages:
    - mysql-server-5.6
    - mysql-client-core-5.6
    - mysql-client-5.6
services:
  - postgresql
  - mysql
language: ruby
rvm:
  - 2.4.2
before_install:
  - git fetch --unshallow
  - sudo apt-get -qq update
  - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev postfix
  - if [ "${DB}" = "mysql" ]; then mysql -u root -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';"; fi
  - if [ "${DB}" = "mysql" ]; then mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'some_user'@'localhost';"; fi
  - if [ "${DB}" = "mysql" ]; then cp config/database.yml.test-mysql config/database.yml; fi
  - if [ "${DB}" = "postgresql" ]; then psql -c 'create database zammad_test;' -U postgres; fi<commit_msg>Switch to containerized environment for Travis CI<commit_after>dist: trusty
sudo: false
notifications:
  email:
    - <EMAIL>
env:
  - DB=mysql
  - DB=postgresql
addons:
  postgresql: "9.4"
  apt:
    packages:
    - curl
    - git-core
    - patch
    - build-essential
    - bison
    - zlib1g-dev
    - libssl-dev
    - libxml2-dev
    - sqlite3
    - libsqlite3-dev
    - autotools-dev
    - libxslt1-dev
    - libyaml-0-2
    - autoconf
    - automake
    - libreadline6-dev
    - libyaml-dev
    - libtool
    - libgmp-dev
    - libgdbm-dev
    - libncurses5-dev
    - pkg-config
    - libffi-dev
    - libmysqlclient-dev
    - postfix
    - mysql-server-5.6
    - mysql-client-core-5.6
    - mysql-client-5.6
services:
  - postgresql
  - mysql
language: ruby
rvm:
  - 2.4.2
before_install:
  - git fetch --unshallow
  - if [ "${DB}" = "mysql" ]; then mysql -u root -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';"; fi
  - if [ "${DB}" = "mysql" ]; then mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'some_user'@'localhost';"; fi
  - if [ "${DB}" = "mysql" ]; then cp config/database.yml.test-mysql config/database.yml; fi
  - if [ "${DB}" = "postgresql" ]; then psql -c 'create database zammad_test;' -U postgres; fi
{'fraction_non_alphanumeric': 0.1416631842875052, 'fraction_numerical': 0.01713330547430004, 'mean_word_length': 2.666156202143951, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '4277991', 'n_tokens_mistral': 941, 'n_tokens_neox': 913, 'n_words': 224}