<commit_before>language: php

php:
  - '7.4'

dist: trusty

sudo: false

env:
  global:
    - setup=stable

before_install:
  - travis_retry composer self-update

install:
  - if [[ $setup = 'stable' ]]; then COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update --prefer-dist --prefer-stable --no-interaction --no-suggest; fi
  - if [[ $setup = 'normal' ]]; then COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi

before_script:
  - cp .env.travis .env
  - mysql -e 'create database apiato_db;'
  - php artisan key:generate
  - php artisan migrate --seed
  - php artisan passport:install

script: vendor/bin/phpunit

cache:
  directories:
    - $HOME/.composer/cache

after_failure:
  - echo --------------- Begin > Laravel.log ---------------
  - cat storage/logs/laravel.log
  - echo --------------- End   > Laravel.log ---------------

after_success:
  - php artisan -V
<commit_msg>Update travis configs<commit_after>language: php

php:
  - '7.3'
  - '8.0'

dist: trusty

sudo: false

env:
  global:
    - setup=stable

before_install:
  - travis_retry composer self-update

install:
  - if [[ $setup = 'stable' ]]; then COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update --prefer-dist --prefer-stable --no-interaction --no-suggest; fi
  - if [[ $setup = 'normal' ]]; then COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi

before_script:
  - cp .env.travis .env
  - mysql -e 'create database apiato_db;'
  - php artisan key:generate
  - php artisan migrate --seed
  - php artisan passport:install

script: vendor/bin/phpunit

cache:
  directories:
    - $HOME/.composer/cache

after_failure:
  - echo --------------- Begin > Laravel.log ---------------
  - cat storage/logs/laravel.log
  - echo --------------- End   > Laravel.log ---------------

after_success:
  - php artisan -V

{'fraction_non_alphanumeric': 0.1786085150571132, 'fraction_numerical': 0.005192107995846314, 'mean_word_length': 2.422735346358792, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6144112', 'n_tokens_mistral': 667, 'n_tokens_neox': 658, 'n_words': 161}