Skip to content

Commit bba8c4b

Browse files
committed
Merge remote-tracking branch 'upstream/master' into ignore-whitespaces
2 parents 76abbfe + 8049085 commit bba8c4b

File tree

11 files changed

+430
-473
lines changed

11 files changed

+430
-473
lines changed

.travis.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,37 @@ matrix:
1111

1212
install:
1313
- travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
14-
- travis_retry wget https://phar.io/releases/phive.phar
1514

1615
script:
1716
- ./vendor/bin/phpunit --no-coverage
1817

1918
jobs:
2019
include:
21-
- stage: coverage
20+
- stage: analysis
2221
php: 7.1
2322
script:
2423
- ./vendor/bin/phpunit
2524
after_script:
25+
- travis_retry wget --no-verbose https://phar.io/releases/phive.phar
2626
- travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
27-
- travis_retry wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
27+
- travis_retry wget --no-verbose https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
2828

29-
- stage: lint
29+
- stage: analysis
3030
php: 7.1
3131
before_script:
32+
- travis_retry wget --no-verbose https://phar.io/releases/phive.phar
3233
- travis_retry php phive.phar --no-progress install --trust-gpg-keys 8E730BA25823D8B5 phpstan
3334
script:
3435
- ./tools/phpstan analyse src --level max --configuration phpstan.neon
35-
- composer create-project symplify/easy-coding-standard temp/ecs && temp/ecs/bin/ecs check src tests
36+
37+
- stage: analysis
38+
php: 7.1
39+
script:
40+
- composer create-project symplify/easy-coding-standard temp/ecs ^3 && temp/ecs/bin/ecs check src tests
3641

3742
cache:
3843
directories:
39-
- $HOME/.composer/cache/files
44+
- $HOME/.composer
4045
- $HOME/.phive
4146

4247
notifications:

appveyor.yml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ branches:
1212

1313
environment:
1414
matrix:
15-
- PHP_VERSION: '7.1.14'
16-
VC_VERSION: 'VC14'
17-
- PHP_VERSION: '7.2.2'
18-
VC_VERSION: 'VC15'
15+
- php_ver_target: 7.1
16+
- php_ver_target: 7.2
1917
matrix:
2018
fast_finish: false
2119

@@ -24,28 +22,28 @@ cache:
2422
- '%LOCALAPPDATA%\Composer\files'
2523

2624
init:
27-
- SET PATH=c:\php\%PHP_VERSION%;%PATH%
25+
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
26+
- SET COMPOSER_NO_INTERACTION=1
27+
- SET PHP=1
28+
- SET ANSICON=121x90 (121x90)
29+
2830

2931
install:
30-
- IF NOT EXIST c:\php mkdir c:\php
31-
- IF NOT EXIST c:\php\%PHP_VERSION% mkdir c:\php\%PHP_VERSION%
32-
- cd c:\php\%PHP_VERSION%
33-
- IF NOT EXIST php-installed.txt appveyor DownloadFile http://windows.php.net/downloads/releases/php-%PHP_VERSION%-Win32-%VC_VERSION%-x86.zip
34-
- IF NOT EXIST php-installed.txt 7z x php-%PHP_VERSION%-Win32-%VC_VERSION%-x86.zip -y >nul
35-
- IF NOT EXIST php-installed.txt del /Q *.zip
36-
- IF NOT EXIST php-installed.txt copy /Y php.ini-development php.ini
37-
- IF NOT EXIST php-installed.txt echo max_execution_time=1200 >> php.ini
38-
- IF NOT EXIST php-installed.txt echo date.timezone="UTC" >> php.ini
39-
- IF NOT EXIST php-installed.txt echo extension_dir=ext >> php.ini
40-
- IF NOT EXIST php-installed.txt echo extension=php_curl.dll >> php.ini
41-
- IF NOT EXIST php-installed.txt echo extension=php_openssl.dll >> php.ini
42-
- IF NOT EXIST php-installed.txt echo extension=php_mbstring.dll >> php.ini
43-
- IF NOT EXIST php-installed.txt echo extension=php_fileinfo.dll >> php.ini
44-
- IF NOT EXIST php-installed.txt echo zend.assertions=1 >> php.ini
45-
- IF NOT EXIST php-installed.txt echo assert.exception=On >> php.ini
46-
- IF NOT EXIST php-installed.txt appveyor DownloadFile https://getcomposer.org/composer.phar
47-
- IF NOT EXIST php-installed.txt echo @php %%~dp0composer.phar %%* > composer.bat
48-
- IF NOT EXIST php-installed.txt type nul >> php-installed.txt
32+
- IF EXIST c:\tools\php (SET PHP=0)
33+
- ps: appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
34+
- cd c:\tools\php
35+
- IF %PHP%==1 copy /Y php.ini-development php.ini
36+
- IF %PHP%==1 echo max_execution_time=1200 >> php.ini
37+
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
38+
- IF %PHP%==1 echo extension_dir=ext >> php.ini
39+
- IF %PHP%==1 echo extension=php_curl.dll >> php.ini
40+
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
41+
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
42+
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
43+
- IF %PHP%==1 echo zend.assertions=1 >> php.ini
44+
- IF %PHP%==1 echo assert.exception=On >> php.ini
45+
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
46+
- appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
4947
- cd c:\typeresolver
5048
- composer install --no-interaction --prefer-dist --no-progress
5149

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "phpdocumentor/type-resolver",
3+
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
34
"type": "library",
45
"license": "MIT",
56
"authors": [
@@ -8,14 +9,14 @@
89
"email": "[email protected]"
910
}
1011
],
11-
"minimum-stability": "alpha",
12+
"minimum-stability": "beta",
1213
"require": {
1314
"php": ">=7.1",
14-
"phpdocumentor/reflection-common": "^2"
15+
"phpdocumentor/reflection-common": "~2.0.0-beta1"
1516
},
1617
"require-dev": {
17-
"mockery/mockery": "^1.0",
18-
"phpunit/phpunit": "^6.5"
18+
"mockery/mockery": "~1",
19+
"phpunit/phpunit": "~6"
1920
},
2021
"autoload": {
2122
"psr-4": {

0 commit comments

Comments
 (0)