build: off
shallow_clone: false
platform: 'x64'
clone_folder: c:\projects\freedsx-socket

environment:
  matrix:
    - PHP_VERSION: "7.1"
    - PHP_VERSION: "7.2"
    - PHP_VERSION: "7.3"

install:
  - ps: Invoke-WebRequest "https://raw.githubusercontent.com/ChadSikorra/ps-install-php/master/Install-PHP.ps1" -OutFile "Install-PHP.ps1"
  - ps: .\Install-PHP.ps1 -Version $Env:PHP_VERSION -Highest -Arch x64 -Extensions openssl
  - refreshenv
  - cd C:\projects\freedsx-socket
  - php -r "readfile('https://getcomposer.org/installer');" | php

before_test:
  - cd C:\projects\freedsx-socket
  - php composer.phar install --no-interaction --no-progress --optimize-autoloader --prefer-source --no-ansi

test_script:
  - cd C:\projects\freedsx-socket
  - bin\phpspec.bat run --format=pretty --no-interaction
