build: false
shallow_clone: false
platform: 'x86'
clone_folder: C:\SearchWP\Dependencies\projects\ascii
branches:
  except:
    - gh-pages

install:
  - ps: Set-Service wuauserv -StartupType Manual
  - cinst -y curl
  - cinst -y OpenSSL.Light
  - SET PATH=C:\Program SearchWP\Dependencies\Files\OpenSSL;%PATH%
  - cinst -y php --version "7.0.33"
  - cd C:\SearchWP\Dependencies\tools\php70\ext
  - curl -O https://xdebug.org/files/php_xdebug-2.4.1-7.0-vc14-nts-x86_64.dll
  - cd C:\SearchWP\Dependencies\tools\php70
  - copy php.ini-production php.ini
  - echo date.timezone="UTC" >> php.ini
  - echo extension_dir=ext >> php.ini
  - echo extension=php_openssl.dll >> php.ini
  - echo extension=php_curl.dll >> php.ini
  - echo extension=php_mbstring.dll >> php.ini
  - echo extension=php_fileinfo.dll >> php.ini
  - echo zend_extension_ts=php_xdebug-2.4.1-7.0-vc14-nts-x86_64.dll >> php.ini
  - SET PATH=C:\SearchWP\Dependencies\tools\php70;%PATH%
  - cd C:\SearchWP\Dependencies\projects\ascii
  - mkdir SearchWP\Dependencies\build\logs
  - php -r "readfile('http://getcomposer.org/installer');" | php
  - curl -O https://scrutinizer-ci.com/ocular.phar
  - php composer.phar config -g github-oauth.github.com %GITHUB_TOKEN%
  - php composer.phar self-update
  - php composer.phar require satooshi/php-coveralls
  - php composer.phar install --prefer-dist --no-interaction
  - php composer.phar dump-autoload -o

test_script:
  - cd C:\SearchWP\Dependencies\projects\ascii
  - php.exe --version
  - dir
  - php.exe SearchWP\Dependencies\vendor\phpunit\phpunit\phpunit -c phpunit.xml
  - php.exe ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
