Skip to content

Commit

Permalink
Enable CI of command integration tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelstolt committed Mar 25, 2017
1 parent d092410 commit 85bdf22
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
build: false
clone_depth: 1
platform: x86

environment:
matrix:
- PHP_DOWNLOAD_FILE: php-5.6.29-nts-Win32-VC11-x86.zip

cache:
- c:\php -> .appveyor.yml
- '%LOCALAPPDATA%\Composer'

init:
- SET PATH=c:\php;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET PHP=1
- SET ANSICON=121x90 (121x90)
- git config --global core.autocrlf input

install:
- IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php)
- cd c:\php
- IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/%PHP_DOWNLOAD_FILE%
- IF %PHP%==1 7z x %PHP_DOWNLOAD_FILE% -y > 7z.log
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
- appveyor DownloadFile https://getcomposer.org/composer.phar
- copy php.ini-production php.ini /Y
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo extension=php_curl.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_fileinfo.dll >> php.ini
- cd %APPVEYOR_BUILD_FOLDER%
- composer update --no-progress --ansi

test_script:
- cd %APPVEYOR_BUILD_FOLDER%
- composer lpv:test
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
* text=auto eol=lf

.appveyor.yml export-ignore
.ctl.cache export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# LeanPackageValidator
[![Build Status](https://secure.travis-ci.org/raphaelstolt/lean-package-validator.png)](http://travis-ci.org/raphaelstolt/lean-package-validator)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/raphaelstolt/lean-package-validator?svg=true)](https://ci.appveyor.com/api/projects/status/github/raphaelstolt/lean-package-validator)
[![Version](http://img.shields.io/packagist/v/stolt/lean-package-validator.svg?style=flat)](https://packagist.org/packages/stolt/lean-package-validator)
![PHP Version](http://img.shields.io/badge/php-5.6+-ff69b4.svg)
[![composer.lock available](https://poser.pugx.org/stolt/lean-package-validator/composerlock)](https://packagist.org/packages/stolt/lean-package-validator)
Expand Down

0 comments on commit 85bdf22

Please sign in to comment.