<commit_before>build: false
shallow_clone: true

cache:
  - .\php -> appveyor.yml
  - vendor -> composer.lock

init:
  - set PATH=%PATH%;.\php
  - set COMPOSER_NO_INTERACTION=1
  - set CACHED=0

install:
  - if exist .\php (set CACHED=1) else (mkdir .\php)
  - if %CACHED%==0 cd .\php
  - if %CACHED%==0 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-7.1.8-nts-Win32-VC14-x64.zip -FileName php.zip
  - if %CACHED%==0 appveyor DownloadFile https://getcomposer.org/composer.phar
  - if %CACHED%==0 7z x php.zip -y
  - if %CACHED%==0 copy php.ini-production php.ini /Y
  - if %CACHED%==0 echo date.timezone="Europe/Berlin" >> php.ini
  - if %CACHED%==0 echo extension_dir=ext >> php.ini
  - if %CACHED%==0 echo extension=php_openssl.dll >> php.ini
  - if %CACHED%==0 echo extension=php_mbstring.dll >> php.ini
  - if %CACHED%==0 cd ..

test_script:
  - php .\php\composer.phar install
  - vendor/bin/phpunit.bat --coverage-text<commit_msg>build with PHP 7.2, as we don't support 7.1 any more<commit_after>build: false
shallow_clone: true

cache:
  - .\php -> appveyor.yml
  - vendor -> composer.lock

init:
  - set PATH=%PATH%;.\php
  - set COMPOSER_NO_INTERACTION=1
  - set CACHED=0

install:
  - if exist .\php (set CACHED=1) else (mkdir .\php)
  - if %CACHED%==0 cd .\php
  - if %CACHED%==0 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-7.2.14-nts-Win32-VC14-x64.zip -FileName php.zip
  - if %CACHED%==0 appveyor DownloadFile https://getcomposer.org/composer.phar
  - if %CACHED%==0 7z x php.zip -y
  - if %CACHED%==0 copy php.ini-production php.ini /Y
  - if %CACHED%==0 echo date.timezone="Europe/Berlin" >> php.ini
  - if %CACHED%==0 echo extension_dir=ext >> php.ini
  - if %CACHED%==0 echo extension=php_openssl.dll >> php.ini
  - if %CACHED%==0 echo extension=php_mbstring.dll >> php.ini
  - if %CACHED%==0 cd ..

test_script:
  - php .\php\composer.phar install
  - vendor/bin/phpunit.bat --coverage-text
{'fraction_non_alphanumeric': 0.16328600405679514, 'fraction_numerical': 0.02586206896551724, 'mean_word_length': 3.2248394004282654, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '560586', 'n_tokens_mistral': 827, 'n_tokens_neox': 790, 'n_words': 173}