Add appveyor, for CI on Windows

This commit is contained in:
Matthias Mullie 2016-02-16 21:35:43 +01:00
parent ea2512a67c
commit 0af40ce217
2 changed files with 29 additions and 0 deletions

1
.gitattributes vendored
View File

@ -4,6 +4,7 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/appveyor.yml export-ignore
/makefile export-ignore
/phpunit.xml.dist export-ignore
/README.md export-ignore

28
appveyor.yml Normal file
View File

@ -0,0 +1,28 @@
build: false
shallow_clone: false
platform:
- x86
- x64
cache:
- C:\Program Files\OpenSSL -> appveyor.yml
- C:\tools\php -> appveyor.yml
- vendor -> composer.json
init:
- SET PATH=C:\Program Files\OpenSSL;C:\tools\php;%PATH%
install:
# install ssl
- IF NOT EXIST "C:\Program Files\OpenSSL" (cinst -y OpenSSL.Light)
# install php
- IF NOT EXIST C:\tools\php (cinst -y php)
- echo extension_dir=ext > C:\tools\php\php.ini
- echo extension=php_openssl.dll >> C:\tools\php\php.ini
# install composer
- IF NOT EXIST vendor (php -r "readfile('https://getcomposer.org/installer');" | php & php composer.phar --prefer-source install)
test_script:
- vendor\bin\phpunit