diff --git a/.gitattributes b/.gitattributes index 7e568ca..f9f5817 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..2e62990 --- /dev/null +++ b/appveyor.yml @@ -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