<commit_before>build: false
platform: 'x64'
clone_folder: c:\projects\cakephp

cache:
  - '%LOCALAPPDATA%\Composer\files -> composer.lock'
  - C:\ProgramData\chocolatey\bin -> .appveyor.yml
  - C:\ProgramData\chocolatey\lib -> .appveyor.yml
  - C:\php -> .appveyor.yml

branches:
  only:
    - master
    - 3.next
    - 4.x
environment:
  global:
    PHP: "C:/PHP"
    php_ver_target: 7.2

  matrix:
    - db: 2012
      db_dsn: 'sqlserver://sa:Password12!@.\SQL2012SP1/cakephp?MultipleActiveResultSets=false'

services:
  - mssql2012sp1

init:
  - SET PATH=C:\Program Files\OpenSSL;C:\php;%PATH%
  - SET COMPOSER_NO_INTERACTION=1
  - SET PHP=1 # This var is connected to PHP install cache
  - SET ANSICON=121x90 (121x90)

install:
  - IF EXIST C:\php (SET PHP=0)
  - ps: appveyor-retry cinst --no-progress --params '""/InstallDir:C:\php""' --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
  - cd C:\php
  - copy php.ini-production php.ini /Y
  - echo date.timezone="UTC" >> php.ini
  - echo extension_dir=ext >> php.ini
  - echo extension=php_openssl.dll >> php.ini
  - echo extension=php_mbstring.dll >> php.ini
  - echo extension=php_intl.dll >> php.ini
  - echo extension=php_fileinfo.dll >> php.ini

  - curl -fsS https://windows.php.net/downloads/pecl/releases/pdo_sqlsrv/5.2.0/php_pdo_sqlsrv-5.2.0-7.2-nts-vc15-x64.zip -o pdosqlsrv.zip
  - 7z x pdosqlsrv.zip -oC:\php\ext php_pdo_sqlsrv.dll -aoa > nul
  - curl -fsS https://windows.php.net/downloads/pecl/releases/sqlsrv/5.2.0/php_sqlsrv-5.2.0-7.2-nts-vc15-x64.zip -o sqlsrv.zip
  - 7z x sqlsrv.zip -oC:\php\ext php_sqlsrv.dll -aoa > nul
  - echo extension=php_pdo_sqlsrv.dll >> php.ini
  - echo extension=php_sqlsrv.dll >> php.ini<commit_msg>Download and install Windows PHP from php.net<commit_after>build: false
platform: 'x64'
clone_folder: c:\projects\cakephp

cache:
  - '%LOCALAPPDATA%\Composer\files -> composer.lock'
  - C:\ProgramData\chocolatey\bin -> .appveyor.yml
  - C:\ProgramData\chocolatey\lib -> .appveyor.yml
  - C:\php -> .appveyor.yml

branches:
  only:
    - master
    - 3.next
    - 4.x
environment:
  global:
    PHP: "C:/PHP"
    php_ver_target: 7.2

  matrix:
    - db: 2012
      db_dsn: 'sqlserver://sa:Password12!@.\SQL2012SP1/cakephp?MultipleActiveResultSets=false'

services:
  - mssql2012sp1

init:
  - SET PATH=C:\Program Files\OpenSSL;C:\php;%PATH%
  - SET COMPOSER_NO_INTERACTION=1
  - SET PHP=1 # This var is connected to PHP install cache
  - SET ANSICON=121x90 (121x90)

install:
  - IF EXIST C:\php (SET PHP=0)
  - curl -fsS https://windows.php.net/downloads/releases/latest/php-7.2-nts-Win32-VC15-x64-latest.zip -o php.zip
  - 7z x php.zip -oC:\php\ -aoa > nul

  - cd C:\php
  - copy php.ini-production php.ini /Y
  - echo date.timezone="UTC" >> php.ini
  - echo extension_dir=ext >> php.ini
  - echo extension=php_openssl.dll >> php.ini
  - echo extension=php_mbstring.dll >> php.ini
  - echo extension=php_intl.dll >> php.ini
  - echo extension=php_fileinfo.dll >> php.ini
  - php -v

  - curl -fsS https://windows.php.net/downloads/pecl/releases/pdo_sqlsrv/5.2.0/php_pdo_sqlsrv-5.2.0-7.2-nts-vc15-x64.zip -o pdosqlsrv.zip
  - 7z x pdosqlsrv.zip -oC:\php\ext php_pdo_sqlsrv.dll -aoa > nul
  - curl -fsS https://windows.php.net/downloads/pecl/releases/sqlsrv/5.2.0/php_sqlsrv-5.2.0-7.2-nts-vc15-x64.zip -o sqlsrv.zip
  - 7z x sqlsrv.zip -oC:\php\ext php_sqlsrv.dll -aoa > nul
  - echo extension=php_pdo_sqlsrv.dll >> php.ini
  - echo extension=php_sqlsrv.dll >> php.ini
{'fraction_non_alphanumeric': 0.15655737704918032, 'fraction_numerical': 0.03633879781420765, 'mean_word_length': 3.03638368246968, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 48, 'https://': 5, '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': '7337340', 'n_tokens_mistral': 1647, 'n_tokens_neox': 1506, 'n_words': 273}