Skip to content

Commit

Permalink
Added appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Feb 14, 2017
1 parent 36f6ec5 commit 956cb1d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
build: false
shallow_clone: true
platform:
- x64
environment:
matrix:
- dependencies: lowest
php_ver_target: 7.0
- dependencies: highest
php_ver_target: 7.0
- dependencies: lowest
php_ver_target: 7.1
- dependencies: highest
php_ver_target: 7.1
clone_folder: c:\projects\slevomat-coding-standard
cache:
- c:\tools\php -> appveyor.yml
init:
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET PHP=1
- SET ANSICON=121x90 (121x90)
install:
- IF EXIST c:\tools\php (SET PHP=0)
- ps: appveyor-retry cinst --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $Env:php_ver_target | Select-Object -first 1) -replace '[php|]','')
- cd c:\tools\php
- IF %PHP%==1 copy php.ini-production php.ini /Y
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
- IF %PHP%==1 echo extension_dir=ext >> php.ini
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
- appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
- cd c:\projects\slevomat-coding-standard
- IF %dependencies%==lowest appveyor-retry composer update --prefer-lowest --no-interaction --no-progress --profile
- IF %dependencies%==highest appveyor-retry composer update --no-interaction --no-progress --profile
- composer show
test_script:
- cd c:\projects\slevomat-coding-standard
- bin/phing

0 comments on commit 956cb1d

Please sign in to comment.