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

install:
  - cinst -y OpenSSL.Light
  - SET PATH=C:\Program Files\OpenSSL;%PATH%
  - cinst -y php
  - cd c:\tools\php
  - 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
  - SET PATH=C:\tools\php;%PATH%
  - cd C:\projects\phpmd
  - php -r "readfile('http://getcomposer.org/installer');" | php
  - php composer.phar install --prefer-source --no-interaction

test_script:
  - cd C:\projects\phpmd
  - vendor\bin\phpunit.bat

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

install:
  - cinst -y OpenSSL.Light
  - SET PATH=C:\Program Files\OpenSSL;%PATH%
  - sc config wuauserv start= auto
  - net start wuauserv
  - cinst -y php
  - cd c:\tools\php
  - 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
  - SET PATH=C:\tools\php;%PATH%
  - cd C:\projects\phpmd
  - php -r "readfile('http://getcomposer.org/installer');" | php
  - php composer.phar install --prefer-source --no-interaction

test_script:
  - cd C:\projects\phpmd
  - vendor\bin\phpunit.bat

Enable Windows Update service on AppVeyor
Enable Windows Update service on AppVeyor

The `php` Chocolatey package depends on `KB2919442` which isn't installed
on AppVeyor, and thus attempts to install it. This was failing as it
requires the Windows Update process to be running properly. This forces
that to be enabled.
