Skip to content

Commit b7584ea

Browse files
authored
Merge pull request #127 from ashnazg/ci2
add more typing
2 parents 208cd45 + 784c95f commit b7584ea

File tree

86 files changed

+1225
-3470
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1225
-3470
lines changed

.gitignore

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# IDE Shizzle; it is recommended to use a global .gitignore for this but since this is an OSS project we want to make
2+
# it easy to contribute
13
.idea
2-
vendor
3-
/build/
4+
/nbproject/private/
5+
.buildpath
6+
.project
7+
.settings
8+
9+
# Build folder and vendor folder are generated code; no need to version this
10+
build/
11+
tools/
12+
temp/
13+
vendor/
14+
*.phar
15+
16+
# By default the phpunit.xml.dist is provided; you can override this using a local config file
17+
phpunit.xml

.travis.yml

+14-15
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
language: php
2-
php:
3-
- 7.1
4-
- 7.2
5-
- nightly
2+
php: [ 7.1, 7.2, nightly ]
63
sudo: false
74

85
env:
@@ -13,33 +10,35 @@ matrix:
1310
- php: nightly
1411

1512
install:
16-
- composer install --no-interaction --prefer-dist --optimize-autoloader
13+
- travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
14+
- travis_retry composer global require phpunit/phpunit "^6" # cannot use phpunit.phar or require-dev, because this package is a phpunit dep
15+
- travis_retry wget --no-verbose https://phar.io/releases/phive.phar
16+
17+
script:
18+
- /home/travis/.composer/vendor/bin/phpunit --no-coverage
1719

1820
jobs:
1921
include:
20-
- stage: test
21-
script:
22-
- vendor/bin/phpunit --no-coverage
23-
2422
- stage: coverage
2523
php: 7.1
2624
script:
27-
- vendor/bin/phpunit
25+
- /home/travis/.composer/vendor/bin/phpunit
2826
after_script:
29-
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
30-
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar && php coveralls.phar --verbose
27+
- travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
28+
- travis_retry wget --no-verbose https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
3129

3230
- stage: lint
3331
php: 7.1
3432
before_script:
35-
- composer create-project symplify/easy-coding-standard temp/ecs
33+
- travis_retry php phive.phar --no-progress install --trust-gpg-keys 8E730BA25823D8B5 phpstan
3634
script:
37-
- temp/ecs/bin/ecs check src tests
38-
- vendor/bin/phpstan analyse src --level max --configuration phpstan.neon
35+
- ./tools/phpstan analyse src --level max --configuration phpstan.neon
36+
- composer create-project symplify/easy-coding-standard temp/ecs ^3 && temp/ecs/bin/ecs check src tests
3937

4038
cache:
4139
directories:
4240
- $HOME/.composer/cache/files
41+
- $HOME/.phive
4342

4443
notifications:
4544
irc: "irc.freenode.org#phpdocumentor"

appveyor.yml

+25-26
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,11 @@ skip_tags: true
99
branches:
1010
only:
1111
- develop
12-
- master
1312

1413
environment:
1514
matrix:
16-
- PHP_VERSION: '7.1.13'
17-
VC_VERSION: 'VC14'
18-
- PHP_VERSION: '7.2.1'
19-
VC_VERSION: 'VC15'
15+
- php_ver_target: 7.1
16+
- php_ver_target: 7.2
2017
matrix:
2118
fast_finish: false
2219

@@ -25,31 +22,33 @@ cache:
2522
- '%LOCALAPPDATA%\Composer\files'
2623

2724
init:
28-
- 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+
2930

3031
install:
31-
- IF NOT EXIST c:\php mkdir c:\php
32-
- IF NOT EXIST c:\php\%PHP_VERSION% mkdir c:\php\%PHP_VERSION%
33-
- cd c:\php\%PHP_VERSION%
34-
- IF NOT EXIST php-installed.txt appveyor DownloadFile http://windows.php.net/downloads/releases/php-%PHP_VERSION%-Win32-%VC_VERSION%-x86.zip
35-
- IF NOT EXIST php-installed.txt 7z x php-%PHP_VERSION%-Win32-%VC_VERSION%-x86.zip -y >nul
36-
- IF NOT EXIST php-installed.txt del /Q *.zip
37-
- IF NOT EXIST php-installed.txt copy /Y php.ini-development php.ini
38-
- IF NOT EXIST php-installed.txt echo max_execution_time=1200 >> php.ini
39-
- IF NOT EXIST php-installed.txt echo date.timezone="UTC" >> php.ini
40-
- IF NOT EXIST php-installed.txt echo extension_dir=ext >> php.ini
41-
- IF NOT EXIST php-installed.txt echo extension=php_curl.dll >> php.ini
42-
- IF NOT EXIST php-installed.txt echo extension=php_openssl.dll >> php.ini
43-
- IF NOT EXIST php-installed.txt echo extension=php_mbstring.dll >> php.ini
44-
- IF NOT EXIST php-installed.txt echo extension=php_fileinfo.dll >> php.ini
45-
- IF NOT EXIST php-installed.txt echo zend.assertions=1 >> php.ini
46-
- IF NOT EXIST php-installed.txt echo assert.exception=On >> php.ini
47-
- IF NOT EXIST php-installed.txt appveyor DownloadFile https://getcomposer.org/composer.phar
48-
- IF NOT EXIST php-installed.txt echo @php %%~dp0composer.phar %%* > composer.bat
49-
- 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
5047
- cd c:\reflection
5148
- composer install --no-interaction --prefer-dist --no-progress
49+
- composer global require phpunit/phpunit ^6
50+
- composer global config bin-dir --absolute
5251

5352
test_script:
5453
- cd c:\reflection
55-
- vendor/bin/phpunit --no-coverage
54+
- c:\Users\appveyor\AppData\Roaming\Composer\vendor\bin\phpunit --no-coverage

composer.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,16 @@
1818
]
1919
}
2020
},
21+
"minimum-stability": "alpha",
2122
"require": {
2223
"php": ">=7.1",
2324
"psr/log": "~1.0",
2425
"nikic/php-parser": "^3.0",
25-
"phpdocumentor/reflection-docblock": "^4.1",
26-
"phpdocumentor/reflection-common": "^1.0@dev"
26+
"phpdocumentor/reflection-docblock": "^5"
2727
},
2828
"require-dev": {
2929
"mockery/mockery": "~1.0",
30-
"mikey179/vfsStream": "~1.2",
31-
"squizlabs/php_codesniffer": "^2.5",
32-
"phpunit/phpunit": "~6.5",
33-
"phpstan/phpstan": "^0.9.0"
30+
"mikey179/vfsStream": "~1.2"
3431
},
3532
"extra": {
3633
"branch-alias": {

0 commit comments

Comments
 (0)