diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..200c281c --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,29 @@ +build: off +cache: + - c:\php -> appveyor.yml + - '%LOCALAPPDATA%\Composer\files -> appveyor.yml' + +clone_folder: c:\projects\http + +init: + - SET PATH=c:\php;%PATH% + - SET PHP=1 + - SET ANSICON=121x90 (121x90) + +install: + # Install PHP + - IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php) + - IF %PHP%==1 cd c:\php + - IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.6.14-Win32-VC11-x86.zip + - IF %PHP%==1 7z x php-5.6.14-Win32-VC11-x86.zip >nul + - IF %PHP%==1 echo extension_dir=ext >> php.ini + - IF %PHP%==1 echo extension=php_openssl.dll >> php.ini + - IF %PHP%==1 del /Q *.zip + - cd c:\projects\http + + # Install Nette Tester + - appveyor DownloadFile https://getcomposer.org/composer.phar + - php composer.phar install --prefer-dist --no-interaction --no-progress + +test_script: + - vendor\bin\tester tests -s -c tests\php-win.ini diff --git a/readme.md b/readme.md index 5319c6a0..21524e11 100644 --- a/readme.md +++ b/readme.md @@ -3,6 +3,7 @@ Nette HTTP Component [![Downloads this Month](https://img.shields.io/packagist/dm/nette/http.svg)](https://packagist.org/packages/nette/http) [![Build Status](https://travis-ci.org/nette/http.svg?branch=master)](https://travis-ci.org/nette/http) +[![Build Status Windows](https://ci.appveyor.com/api/projects/status/github/nette/http?branch=master&svg=true)](https://ci.appveyor.com/project/nette/http/branch/master) [![Latest Stable Version](https://poser.pugx.org/nette/http/v/stable)](https://github.com/nette/http/releases) [![License](https://img.shields.io/badge/license-New%20BSD-blue.svg)](https://github.com/nette/http/blob/master/license.md)