From f3ed3a14767ce717faf54d4e634934f12aaa5a21 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Wed, 4 Nov 2015 18:02:26 +0100 Subject: [PATCH] added appveyor.yml --- appveyor.yml | 28 ++++++++++++++++++++++++++++ readme.md | 1 + 2 files changed, 29 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..69213121 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,28 @@ +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 + +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/php-5.6.15-Win32-VC11-x86.zip + - IF %PHP%==1 7z x php-5.6.15-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 --ansi + +test_script: + - vendor\bin\tester tests -s --colors 0 -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)