-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from ashnazg/ci
CI updates
- Loading branch information
Showing
9 changed files
with
1,042 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,50 @@ | ||
language: php | ||
|
||
sudo: false | ||
|
||
php: | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- nightly | ||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
env: | ||
|
||
script: | ||
- vendor/bin/phpunit | ||
- composer update --no-interaction --prefer-source | ||
- vendor/bin/phpunit -v | ||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- php: nightly | ||
|
||
before_script: | ||
- composer install --no-interaction | ||
install: | ||
- composer install --no-interaction --prefer-dist --optimize-autoloader | ||
|
||
after_script: | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml | ||
jobs: | ||
include: | ||
- stage: test | ||
script: | ||
- vendor/bin/phpunit --no-coverage | ||
|
||
- stage: coverage | ||
php: 7.1 | ||
script: | ||
- vendor/bin/phpunit | ||
after_script: | ||
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml | ||
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar && php coveralls.phar --verbose | ||
|
||
- stage: lint | ||
php: 7.1 | ||
before_script: | ||
- composer create-project symplify/easy-coding-standard temp/ecs | ||
script: | ||
- temp/ecs/bin/ecs check src tests | ||
- vendor/bin/phpstan analyse src --level max --configuration phpstan.neon | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache/files | ||
|
||
notifications: | ||
irc: "irc.freenode.org#phpdocumentor" | ||
slack: | ||
secure: "fjumM0h+4w3EYM4dpgqvpiCug7m4sSIC5+HATgwga/Nrc6IjlbWvGOv3JPgD3kQUhi18VmZfUYPmCv916SIbMnv8JWcrSaJXnPCgmxidvYkuzQDIw1HDJbVppGnkmwQA/qjIrM3sIEMfnu/arLRJQLI363aStZzGPxwIa4PDKcg=" | ||
email: | ||
- mike.vanriel@naenius.com | ||
- ashnazg@php.net | ||
- boen.robot@gmail.com | ||
- me@mikevanriel.com | ||
- ashnazg@php.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
build: false | ||
clone_folder: c:\reflection | ||
max_jobs: 3 | ||
platform: x86 | ||
pull_requests: | ||
do_not_increment_build_number: true | ||
version: '{build}.{branch}' | ||
skip_tags: true | ||
branches: | ||
only: | ||
- develop | ||
- 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:\reflection | ||
- composer install --no-interaction --prefer-dist --no-progress | ||
|
||
test_script: | ||
- cd c:\reflection | ||
- vendor/bin/phpunit --no-coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.