<commit_before>language: php

git:
  strategy: clone
  depth: 1
  quiet: true

dist: bionic

php:
  - 7.1
  - 7.2
  - 7.3
  - 7.4
  - nightly

env:
  global:
    - PGPORT=5432
  jobs:
    - DB=agnostic #only database agnostic tests
    - DB=mysql
    - DB=sqlite

services:
  - mysql

install:
  - rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
  - composer install
  - composer show

before_script:
  - if [[ $DB != 'agnostic' && $DB != 'sqlite' ]]; then ./tests/bin/setup.$DB.sh; fi

script:
  - ./vendor/bin/phpunit -v -c tests/$DB.phpunit.xml;

jobs:
  include:
# Travis-ci doesn't know how to install Maria 10.1
#   - php: 7.1
#     env: DB=mysql MARIADB=10.1
#     addons:
#       mariadb: 10.1
#   - php: 7.2
#     env: DB=mysql MARIADB=10.1
#     addons:
#       mariadb: 10.1
#   - php: 7.3
#     env: DB=mysql MARIADB=10.1
#     addons:
#       mariadb: 10.1
#   - php: 7.4
#     env: DB=mysql MARIADB=10.1
#     addons:
#       mariadb: 10.1
#       TODO maria 5.5 is not EOL yet.

    - php: 7.1
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2
    - php: 7.2
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2
    - php: 7.3
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2
    - php: 7.4
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2

    - php: 7.1
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2
    - php: 7.2
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2
    - php: 7.3
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2
    - php: 7.4
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2

    - php: 7.1
      env: DB=mysql MARIADB=10.3
      addons:
        mariadb: 10.3
    - php: 7.2
      env: DB=mysql MARIADB=10.3
      addons:
        mariadb: 10.3
    - php: 7.3
      env: DB=mysql MARIADB=10.3
      addons:
        mariadb: 10.3
    - php: 7.4
      env: DB=mysql MARIADB=10.3
      addons:
        mariadb: 10.3

    - php: 7.1
      env: DB=mysql MARIADB=10.4
      addons:
        mariadb: 10.4
      before_script:
        - sudo mysql -e 'drop user if exists travis@localhost;'
        - sudo mysql -e 'create user travis@localhost;'
        - sudo mysql -e "GRANT ALL PRIVILEGES ON db.* TO 'travis'@'localhost";
        - DB_USER=travis ./tests/bin/setup.$DB.sh
    - php: 7.2
      env: DB=mysql MARIADB=10.4
      addons:
        mariadb: 10.4
      before_script:
        - sudo mysql -e 'drop user if exists travis@localhost;'
        - sudo mysql -e 'create user travis@localhost;'
        - sudo mysql -e "GRANT ALL PRIVILEGES ON db.* TO 'travis'@'localhost";
        - DB_USER=travis ./tests/bin/setup.$DB.sh
    - php: 7.3
      env: DB=mysql MARIADB=10.4
      addons:
        mariadb: 10.4
      before_script:
        - sudo mysql -e 'drop user if exists travis@localhost;'
        - sudo mysql -e 'create user travis@localhost;'
        - sudo mysql -e "GRANT ALL PRIVILEGES ON db.* TO 'travis'@'localhost";
        - DB_USER=travis ./tests/bin/setup.$DB.sh
    - php: 7.4
      env: DB=mysql MARIADB=10.4
      addons:
        mariadb: 10.4
      before_script:
        - sudo mysql -e 'drop user if exists travis@localhost;'
        - sudo mysql -e 'create user travis@localhost;'
        - sudo mysql -e "GRANT ALL PRIVILEGES ON db.* TO 'travis'@'localhost";
        - DB_USER=travis ./tests/bin/setup.$DB.sh

    - php: 7.1<commit_msg>Minor typo in permissions<commit_after>language: php

git:
  strategy: clone
  depth: 1
  quiet: true

dist: bionic

php:
  - 7.1
  - 7.2
  - 7.3
  - 7.4
  - nightly

env:
  global:
    - PGPORT=5432
  jobs:
    - DB=agnostic #only database agnostic tests
    - DB=mysql
    - DB=sqlite

services:
  - mysql

install:
  - rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
  - composer install
  - composer show

before_script:
  - if [[ $DB != 'agnostic' && $DB != 'sqlite' ]]; then ./tests/bin/setup.$DB.sh; fi

script:
  - ./vendor/bin/phpunit -v -c tests/$DB.phpunit.xml;

jobs:
  include:
# Travis-ci doesn't know how to install Maria 10.1
#   - php: 7.1
#     env: DB=mysql MARIADB=10.1
#     addons:
#       mariadb: 10.1
#   - php: 7.2
#     env: DB=mysql MARIADB=10.1
#     addons:
#       mariadb: 10.1
#   - php: 7.3
#     env: DB=mysql MARIADB=10.1
#     addons:
#       mariadb: 10.1
#   - php: 7.4
#     env: DB=mysql MARIADB=10.1
#     addons:
#       mariadb: 10.1
#       TODO maria 5.5 is not EOL yet.

    - php: 7.1
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2
    - php: 7.2
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2
    - php: 7.3
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2
    - php: 7.4
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2

    - php: 7.1
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2
    - php: 7.2
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2
    - php: 7.3
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2
    - php: 7.4
      env: DB=mysql MARIADB=10.2
      addons:
        mariadb: 10.2

    - php: 7.1
      env: DB=mysql MARIADB=10.3
      addons:
        mariadb: 10.3
    - php: 7.2
      env: DB=mysql MARIADB=10.3
      addons:
        mariadb: 10.3
    - php: 7.3
      env: DB=mysql MARIADB=10.3
      addons:
        mariadb: 10.3
    - php: 7.4
      env: DB=mysql MARIADB=10.3
      addons:
        mariadb: 10.3

    - php: 7.1
      env: DB=mysql MARIADB=10.4
      addons:
        mariadb: 10.4
      before_script:
        - sudo mysql -e 'drop user if exists travis@localhost;'
        - sudo mysql -e 'create user travis@localhost;'
        - sudo mysql -e "GRANT ALL PRIVILEGES ON db.* TO 'travis'@'localhost'";
        - DB_USER=travis ./tests/bin/setup.$DB.sh
    - php: 7.2
      env: DB=mysql MARIADB=10.4
      addons:
        mariadb: 10.4
      before_script:
        - sudo mysql -e 'drop user if exists travis@localhost;'
        - sudo mysql -e 'create user travis@localhost;'
        - sudo mysql -e "GRANT ALL PRIVILEGES ON db.* TO 'travis'@'localhost'";
        - DB_USER=travis ./tests/bin/setup.$DB.sh
    - php: 7.3
      env: DB=mysql MARIADB=10.4
      addons:
        mariadb: 10.4
      before_script:
        - sudo mysql -e 'drop user if exists travis@localhost;'
        - sudo mysql -e 'create user travis@localhost;'
        - sudo mysql -e "GRANT ALL PRIVILEGES ON db.* TO 'travis'@'localhost'";
        - DB_USER=travis ./tests/bin/setup.$DB.sh
    - php: 7.4
      env: DB=mysql MARIADB=10.4
      addons:
        mariadb: 10.4
      before_script:
        - sudo mysql -e 'drop user if exists travis@localhost;'
        - sudo mysql -e 'create user travis@localhost;'
        - sudo mysql -e "GRANT ALL PRIVILEGES ON db.* TO 'travis'@'localhost";
        - DB_USER=travis ./tests/bin/setup.$DB.sh

    - php: 7.1
{'fraction_non_alphanumeric': 0.1304097771387491, 'fraction_numerical': 0.05176132278936017, 'mean_word_length': 1.7235708692247456, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1484061', 'n_tokens_mistral': 3097, 'n_tokens_neox': 2846, 'n_words': 682}