<commit_before>sudo: required
dist: trusty
language: php
php:
  - 7.1
  - 7.2
  - 7.3

addons:
  apt:
    packages:
    - mysql-server-5.6
    - mysql-client-core-5.6
    - mysql-client-5.6
    - php5-pgsql
    - libxml2-utils

services:
  - docker
  - postgresql

env:
  global:
  - CORE_BRANCH=master
  - TEST_JS=FALSE
  - LINT_JS=FALSE
  - PHP_COVERAGE=FALSE
  - PACKAGE=FALSE
  - NIGHTLY=FALSE
  matrix:
  - DB=sqlite

matrix:
  include:
    - php: 7.1
      env: "DB=mysql CORE_BRANCH=master TEST_JS=TRUE LINT_JS=TRUE"
    - php: 7.1
      env: "DB=mysql CORE_BRANCH=master PACKAGE=TRUE"
    - php: 7.1
      env: "DB=pgsql PHP_COVERAGE=TRUE"
    - php: 7.0
      env: "DB=pgsql CORE_BRANCH=stable15"
    - php: 7.1
      env: "DB=pgsql CORE_BRANCH=v15.0.0"
    - php: 7.2
      env: "DB=pgsql PHP_COVERAGE=TRUE"
  fast_finish: true

branches:
  only:
  - master
  - "/^stable\\d+(\\.\\d+)?$/"
  - /^v\d++(\.\d+)?+(\.\d+)?+(\.\d+)?$/
  - refactor/vue

cache:
  directories:
  - "$HOME/.composer/cache/files"
  - "$HOME/.npm"

before_install:
  - php --info

  # Set up DB
  - if [[ "$DB" == 'pgsql' ]]; then createuser -U travis -s oc_autotest; fi
  - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e 'create database oc_autotest;'; fi
  - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "CREATE USER 'oc_autotest'@'localhost' IDENTIFIED BY '';"; fi
  - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "GRANT ALL ON oc_autotest.* TO 'oc_autotest'@'localhost';"; fi

  - composer self-update
  - make install-composer-deps-dev
  - make start-imap-docker<commit_msg>Only test against supported server versions<commit_after>sudo: required
dist: trusty
language: php
php:
  - 7.1
  - 7.2
  - 7.3

addons:
  apt:
    packages:
    - mysql-server-5.6
    - mysql-client-core-5.6
    - mysql-client-5.6
    - php5-pgsql
    - libxml2-utils

services:
  - docker
  - postgresql

env:
  global:
  - CORE_BRANCH=master
  - TEST_JS=FALSE
  - LINT_JS=FALSE
  - PHP_COVERAGE=FALSE
  - PACKAGE=FALSE
  - NIGHTLY=FALSE
  matrix:
  - DB=sqlite

matrix:
  include:
    - php: 7.1
      env: "DB=mysql CORE_BRANCH=master TEST_JS=TRUE LINT_JS=TRUE"
    - php: 7.1
      env: "DB=mysql CORE_BRANCH=master PACKAGE=TRUE"
    - php: 7.1
      env: "DB=pgsql PHP_COVERAGE=TRUE"
    - php: 7.1
      env: "DB=pgsql CORE_BRANCH=v16.0.0beta3"
    - php: 7.2
      env: "DB=pgsql CORE_BRANCH=v16.0.0alpha1"
    - php: 7.2
      env: "DB=pgsql PHP_COVERAGE=TRUE"
  fast_finish: true

branches:
  only:
  - master
  - "/^stable\\d+(\\.\\d+)?$/"
  - /^v\d++(\.\d+)?+(\.\d+)?+(\.\d+)?$/
  - refactor/vue

cache:
  directories:
  - "$HOME/.composer/cache/files"
  - "$HOME/.npm"

before_install:
  - php --info

  # Set up DB
  - if [[ "$DB" == 'pgsql' ]]; then createuser -U travis -s oc_autotest; fi
  - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e 'create database oc_autotest;'; fi
  - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "CREATE USER 'oc_autotest'@'localhost' IDENTIFIED BY '';"; fi
  - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "GRANT ALL ON oc_autotest.* TO 'oc_autotest'@'localhost';"; fi

  - composer self-update
  - make install-composer-deps-dev
  - make start-imap-docker
{'fraction_non_alphanumeric': 0.17724701445631677, 'fraction_numerical': 0.021370207416719043, 'mean_word_length': 2.4522776572668112, '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': '3889553', 'n_tokens_mistral': 1430, 'n_tokens_neox': 1371, 'n_words': 286}