mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
57 lines
2.1 KiB
YAML
57 lines
2.1 KiB
YAML
build: false
|
|
clone_folder: c:\reflectiondocblock
|
|
max_jobs: 3
|
|
platform: x86
|
|
pull_requests:
|
|
do_not_increment_build_number: true
|
|
version: '{build}.{branch}'
|
|
skip_tags: true
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
environment:
|
|
matrix:
|
|
- PHP_VERSION: '7.1.13'
|
|
VC_VERSION: 'VC14'
|
|
- PHP_VERSION: '7.2.1'
|
|
VC_VERSION: 'VC15'
|
|
matrix:
|
|
fast_finish: false
|
|
|
|
cache:
|
|
- c:\php -> appveyor.yml
|
|
- '%LOCALAPPDATA%\Composer\files'
|
|
|
|
init:
|
|
- SET PATH=c:\php\%PHP_VERSION%;%PATH%
|
|
|
|
install:
|
|
- IF NOT EXIST c:\php mkdir c:\php
|
|
- IF NOT EXIST c:\php\%PHP_VERSION% mkdir c:\php\%PHP_VERSION%
|
|
- cd c:\php\%PHP_VERSION%
|
|
- IF NOT EXIST php-installed.txt appveyor DownloadFile http://windows.php.net/downloads/releases/php-%PHP_VERSION%-Win32-%VC_VERSION%-x86.zip
|
|
- IF NOT EXIST php-installed.txt 7z x php-%PHP_VERSION%-Win32-%VC_VERSION%-x86.zip -y >nul
|
|
- IF NOT EXIST php-installed.txt del /Q *.zip
|
|
- IF NOT EXIST php-installed.txt copy /Y php.ini-development php.ini
|
|
- IF NOT EXIST php-installed.txt echo max_execution_time=1200 >> php.ini
|
|
- IF NOT EXIST php-installed.txt echo date.timezone="UTC" >> php.ini
|
|
- IF NOT EXIST php-installed.txt echo extension_dir=ext >> php.ini
|
|
- IF NOT EXIST php-installed.txt echo extension=php_curl.dll >> php.ini
|
|
- IF NOT EXIST php-installed.txt echo extension=php_openssl.dll >> php.ini
|
|
- IF NOT EXIST php-installed.txt echo extension=php_mbstring.dll >> php.ini
|
|
- IF NOT EXIST php-installed.txt echo extension=php_fileinfo.dll >> php.ini
|
|
- IF NOT EXIST php-installed.txt echo zend.assertions=1 >> php.ini
|
|
- IF NOT EXIST php-installed.txt echo assert.exception=On >> php.ini
|
|
- IF NOT EXIST php-installed.txt appveyor DownloadFile https://getcomposer.org/composer.phar
|
|
- IF NOT EXIST php-installed.txt echo @php %%~dp0composer.phar %%* > composer.bat
|
|
- IF NOT EXIST php-installed.txt type nul >> php-installed.txt
|
|
- cd c:\reflectiondocblock
|
|
- composer install --no-interaction --prefer-dist --no-progress
|
|
- composer global require phpunit/phpunit
|
|
- composer global config bin-dir --absolute
|
|
|
|
test_script:
|
|
- cd c:\reflectiondocblock
|
|
- c:\Users\appveyor\AppData\Roaming\Composer\vendor\bin\phpunit --no-coverage
|